change waypoint icons & add description

This commit is contained in:
andrekir
2022-09-30 16:20:06 -03:00
parent 11d1a61854
commit 347f5ad24e

View File

@@ -130,12 +130,9 @@ class MapFragment : ScreenFragment("Map"), Logging {
val label = it.name + " " + formatAgo(it.expire)
marker = MarkerWithLabel(map, label)
marker.title = it.name
marker.snippet = it.description
marker.setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_BOTTOM)
marker.position = GeoPoint(it.latitudeI.toDouble(), it.longitudeI.toDouble())
marker.icon = ContextCompat.getDrawable(
requireActivity(),
R.drawable.ic_baseline_location_on_24
)
}
marker
}