You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My markers are clustered with RadiusMarkerClusterer and I need to change them after map position is moved. How should I do it properly - remove previous layer (I need to save it first then?) and create a new one with new markers then add to the mapView? Or it's possible to just remove the markers form the current layer and add new ones (like in MutableList)? I see, layers is a simple List, so not sure if duplicates can be replaced automatically (need to use Set and data class in the library at least to find clones).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My markers are clustered with
RadiusMarkerClusterer
and I need to change them after map position is moved. How should I do it properly - remove previous layer (I need to save it first then?) and create a new one with new markers then add to themapView
? Or it's possible to just remove the markers form the current layer and add new ones (like in MutableList)? I see, layers is a simple List, so not sure if duplicates can be replaced automatically (need to useSet
anddata class
in the library at least to find clones).Beta Was this translation helpful? Give feedback.
All reactions