googlemaps / android-maps-utils

Maps SDK for Android Utility Library
https://developers.google.com/maps/documentation/android-sdk/utility
Apache License 2.0
3.55k stars 1.53k forks source link

When i try to remove item from ClusterManager on onDataExited(geofire) its not remove from the map #486

Closed matanelliberman closed 5 years ago

matanelliberman commented 6 years ago

Summary: I use with "com.google.maps.android:android-maps-utils:0.5+" and "com.firebase:geofire-android:2.3.1". i want to add and remove markers from the map according to geoQuery

Steps to reproduce:

  1. when i add new marker to map and firebase the onDataEntered event from geofire called i see a new marker in the map (mClusterManager.addItem(marker); mClusterManager.cluster();)

  2. if i remove item from firebase the onDataExited Event from geofire is called and i want to remove the marker from the map. but its not working. i see it in map after i call to: mClusterManager.removeItem(marker); mClusterManager.cluster();

Expected behavior: item removed from the mClusterManager and from the map

Observed behavior: the item not removed

Device and Android version: All

stale[bot] commented 5 years ago

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!

stale[bot] commented 5 years ago

Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.