@@ -41,8 +41,13 @@ class MapMarkerBuilder(
4141 ): MarkerOptions =
4242 MarkerOptions ().apply {
4343 position(LatLng (m.coordinate.latitude, m.coordinate.longitude))
44- anchor((m.anchor?.x ? : 0.5 ).toFloat(), (m.anchor?.y ? : 0.5 ).toFloat())
4544 icon(icon)
45+ m.title?.let { title(it) }
46+ m.snippet?.let { snippet(it) }
47+ m.opacity?.let { alpha(it.toFloat()) }
48+ m.flat?.let { flat(it) }
49+ m.draggable?.let { draggable(it) }
50+ anchor((m.anchor?.x ? : 0.5 ).toFloat(), (m.anchor?.y ? : 0.5 ).toFloat())
4651 m.zIndex?.let { zIndex(it.toFloat()) }
4752 }
4853
@@ -56,17 +61,22 @@ class MapMarkerBuilder(
5661 next.coordinate.latitude,
5762 next.coordinate.longitude,
5863 )
59- marker.zIndex = next.zIndex?.toFloat() ? : 0f
6064
6165 if (! prev.markerStyleEquals(next)) {
6266 buildIconAsync(marker.id, next) { icon ->
6367 marker.setIcon(icon)
6468 }
6569 }
70+ marker.title = next.title
71+ marker.snippet = next.snippet
72+ marker.alpha = next.opacity?.toFloat() ? : 0f
73+ marker.isFlat = next.flat ? : false
74+ marker.isDraggable = next.draggable ? : false
6675 marker.setAnchor(
6776 (next.anchor?.x ? : 0.5 ).toFloat(),
6877 (next.anchor?.y ? : 0.5 ).toFloat(),
6978 )
79+ marker.zIndex = next.zIndex?.toFloat() ? : 0f
7080 }
7181
7282 fun buildIconAsync (
0 commit comments