aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx
diff options
context:
space:
mode:
Diffstat (limited to 'androidApp/src/main/java/mx')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/MarkerTransformations.kt2
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/Utils.kt3
2 files changed, 4 insertions, 1 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/MarkerTransformations.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/MarkerTransformations.kt
index 1e5c4de..4dd1ea7 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/MarkerTransformations.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/MarkerTransformations.kt
@@ -24,6 +24,7 @@ object MarkerTransformations {
fun markerTypeToResourceId(markerType: Marker.Type): Int {
return when (markerType) {
Marker.Type.ANIMAL -> R.drawable.map_animal
+ Marker.Type.BACKHOE -> R.drawable.map_backhoe
Marker.Type.BICYCLE -> R.drawable.map_bicycle
Marker.Type.BOAT -> R.drawable.map_boat
Marker.Type.BUS -> R.drawable.map_bus
@@ -54,6 +55,7 @@ object MarkerTransformations {
fun markerTypeToStringId(markerType: Marker.Type): Int {
return when (markerType) {
Marker.Type.ANIMAL -> R.string.unit_category_animal
+ Marker.Type.BACKHOE -> R.string.unit_category_backhoe
Marker.Type.BICYCLE -> R.string.unit_category_bicycle
Marker.Type.BOAT -> R.string.unit_category_boat
Marker.Type.BUS -> R.string.unit_category_bus
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/Utils.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/Utils.kt
index fefb67e..dfe0681 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/Utils.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/Utils.kt
@@ -39,7 +39,8 @@ class Utils {
popOver.setOnMenuItemClickListener { item ->
val layer = when (item.itemId) {
R.id.layerStreets -> MapLayer.Type.STREETS
- R.id.layerSatellite -> MapLayer.Type.SATELLITE
+ R.id.layerGmapsStreets -> MapLayer.Type.GMAPS_STREETS
+ R.id.layerGmapsSatellite -> MapLayer.Type.GMAPS_SATELLITE
else -> MapLayer.Type.STREETS
}
callback(layer)