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
I want to update the users latitude & longitude inside clusterManagerItems.
I tried the below line to change location data inside func renderer(_ renderer: GMUClusterRenderer, willRenderMarker marker: GMSMarker){} but app crashing with this error : 'All items should be mapped to a distance'
I'm able to update the already added GMUClusterItem but the issue is that when i call clusterManager.cluster() again when I receive new data from server then GMUClusterItem is gone and come again on map.
Please guide me how to update already added Clustermanager item?
Thanks in advance
The text was updated successfully, but these errors were encountered:
StellarKuldeep
changed the title
How to update existing GMUClusterItem in GoogleMap?
After updating GMUClusterItem, updated GMUClusterItem is gone from map & come again when zoomOut the map.
Jul 29, 2019
This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!
I have load multiple pins in
GoogleMap
with clustering and below is my code.I want to update the users latitude & longitude inside clusterManagerItems.
I tried the below line to change location data inside
func renderer(_ renderer: GMUClusterRenderer, willRenderMarker marker: GMSMarker){}
but app crashing with this error : 'All items should be mapped to a distance'markerData.position = CLLocationCoordinate2D.init(latitude: objCurrentMarker.user_details.latitude, longitude: objCurrentMarker.user_details.longitude)
If I add below line then it works but when I zoomIn/ZoomOut the map. clusterManager item load at old position and then it load to new position.
marker.position = CLLocationCoordinate2D.init(latitude: objCurrentMarker.user_details.latitude, longitude: objCurrentMarker.user_details.longitude)
EDIT 1
I'm able to update the already added
GMUClusterItem
but the issue is that when i callclusterManager.cluster()
again when I receive new data from server thenGMUClusterItem
is gone and come again on map.Please guide me how to update already added Clustermanager item?
Thanks in advance
The text was updated successfully, but these errors were encountered: