From 4f4b7f5755c164d4d9c3c4cc35118cf3429874c6 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sun, 16 Jan 2022 04:26:31 -0600 Subject: Added Google Maps and Google Satellites layers --- .../TrackerMap/android/units/UnitsActivity.kt | 1 + androidApp/src/main/res/menu/map_layers.xml | 4 ++++ androidApp/src/main/res/values-es-rMX/map_layers.xml | 5 +++-- androidApp/src/main/res/values/map_layers.xml | 18 +++++++++++++----- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt index 1bbcb80..f2ff30e 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt @@ -94,6 +94,7 @@ class UnitsActivity : AppCompatActivity() { val layer = resources.getStringArray( when (item.itemId) { R.id.layerStreets -> R.array.maps_streets_tile + R.id.layerGmaps -> R.array.maps_gmaps_tile R.id.layerSatellite -> R.array.maps_satellite_tile else -> R.array.maps_streets_tile } diff --git a/androidApp/src/main/res/menu/map_layers.xml b/androidApp/src/main/res/menu/map_layers.xml index 334b9f9..46165da 100644 --- a/androidApp/src/main/res/menu/map_layers.xml +++ b/androidApp/src/main/res/menu/map_layers.xml @@ -6,6 +6,10 @@ android:id="@+id/layerStreets" android:title="@string/layer_streets"/> + + diff --git a/androidApp/src/main/res/values-es-rMX/map_layers.xml b/androidApp/src/main/res/values-es-rMX/map_layers.xml index eff37d9..ef56b76 100644 --- a/androidApp/src/main/res/values-es-rMX/map_layers.xml +++ b/androidApp/src/main/res/values-es-rMX/map_layers.xml @@ -1,5 +1,6 @@ - Calles - Satélite + OpenStreetMap + Google Calles + Google Satélite \ No newline at end of file diff --git a/androidApp/src/main/res/values/map_layers.xml b/androidApp/src/main/res/values/map_layers.xml index bffceb9..59c6af5 100644 --- a/androidApp/src/main/res/values/map_layers.xml +++ b/androidApp/src/main/res/values/map_layers.xml @@ -1,7 +1,8 @@ - Streets - Satellite + OpenStreetMap + Google Streets + Google Satellite @@ -16,11 +17,18 @@ © OpenStreetMap France | © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors + + https://mt0.google.com/vt/lyrs=m&hl=en&x={x}&y={y}&z={z}&s=Ga + 0 + 21 + © Google + + - https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x} + https://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga 0 - 20 - Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community + 21 + © Google \ No newline at end of file -- cgit v1.2.3