aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'androidApp/src/main/java')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/shared/MarkerTransformations.kt3
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt1
2 files changed, 4 insertions, 0 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 660b436..f684a10 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
@@ -53,6 +53,7 @@ object MarkerTransformations {
private fun categoryToMarkerType(category: String?): MarkerType {
return when (category?.lowercase()) {
"animal" -> MarkerType.ANIMAL
+ "backhoe" -> MarkerType.BACKHOE
"bicycle" -> MarkerType.BICYCLE
"boat" -> MarkerType.BOAT
"bus" -> MarkerType.BUS
@@ -79,6 +80,7 @@ object MarkerTransformations {
fun markerTypeToResourceId(markerType: MarkerType): Int {
return when (markerType) {
MarkerType.ANIMAL -> R.drawable.map_animal
+ MarkerType.BACKHOE -> R.drawable.map_backhoe
MarkerType.BICYCLE -> R.drawable.map_bicycle
MarkerType.BOAT -> R.drawable.map_boat
MarkerType.BUS -> R.drawable.map_bus
@@ -109,6 +111,7 @@ object MarkerTransformations {
fun markerTypeToStringId(markerType: MarkerType): Int {
return when (markerType) {
MarkerType.ANIMAL -> R.string.unit_category_animal
+ MarkerType.BACKHOE -> R.string.unit_category_backhoe
MarkerType.BICYCLE -> R.string.unit_category_bicycle
MarkerType.BOAT -> R.string.unit_category_boat
MarkerType.BUS -> R.string.unit_category_bus
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
}