Fix OSM marker overlay

pull/1967/head
Alex Baker 2 years ago
parent b8470ccc2b
commit 336279ee63

@ -72,7 +72,7 @@ class OsmMapFragment @Inject constructor(
for (place in places) {
overlays.add(Marker(map).apply {
position = GeoPoint(place.latitude, place.longitude)
setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_TOP)
setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_BOTTOM)
icon = ContextCompat.getDrawable(context, R.drawable.ic_map_marker_select_red_48dp)!!.mutate()
setOnMarkerClickListener { _, _ ->
callback.onPlaceSelected(place)

Loading…
Cancel
Save