diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-02-17 11:23:12 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-02-17 11:23:12 -0600 |
commit | 91681e8dd5875ac1cfa2844f7a25df081a4b255d (patch) | |
tree | c8735af6b956c5e725fd4e258f1837685d54a7cc /shared/src/commonMain | |
parent | c7e934a5b215961dcd8f63b6a5586a45a91b9186 (diff) | |
parent | 1a37308c876d09b045a0202804762bf32e9f431c (diff) | |
download | etbsa-trackermap-mobile-91681e8dd5875ac1cfa2844f7a25df081a4b255d.tar.gz etbsa-trackermap-mobile-91681e8dd5875ac1cfa2844f7a25df081a4b255d.tar.bz2 etbsa-trackermap-mobile-91681e8dd5875ac1cfa2844f7a25df081a4b255d.zip |
Merged 'main' branch and solved conflicts.
Diffstat (limited to 'shared/src/commonMain')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/MapLayer.kt | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/MapLayer.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/MapLayer.kt index 3266c0b..7bb41ae 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/MapLayer.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/MapLayer.kt @@ -25,7 +25,8 @@ data class MapLayer( ) { enum class Type { STREETS, - SATELLITE + GMAPS_STREETS, + GMAPS_SATELLITE } companion object { @@ -36,11 +37,17 @@ data class MapLayer( maxZoom = 23, attribution = "© OpenStreetMap France | © <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors" ), - Type.SATELLITE to MapLayer( - url = "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", + Type.GMAPS_STREETS to MapLayer( + url = "https://mt0.google.com/vt/lyrs=m&hl=en&x={x}&y={y}&z={z}&s=Ga", minZoom = 1, - maxZoom = 20, - attribution = "Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community" + maxZoom = 23, + attribution = "© Google" + ), + Type.GMAPS_SATELLITE to MapLayer( + url = "https://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga", + minZoom = 1, + maxZoom = 23, + attribution = "© Google" ) ) |