Нерабочий фикс карты

This commit is contained in:
DarkCat09 2023-06-05 18:59:23 +04:00
parent 96d7819d00
commit 266e2001f2

View file

@ -10,7 +10,8 @@ import java.net.URL
class MapViewModel : ViewModel() {
private val tileStreamProvider = TileStreamProvider { row, col, zoom ->
URL("https://tile.openstreetmap.org/${zoom}/${row}/${col}").openStream()
URL("https://tile.openstreetmap.org/${zoom}/${row}/${col}.png").openStream()
//URL("https://tile2.maps.2gis.com/poi?x=${row}&y=${col}&z=${zoom}&v=1&ts=online_sd").openStream()
}
val state: MapState by mutableStateOf(