-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClusterManager.clearItems() doesn't clear cache #578
Comments
The only place Could you elaborate more on what your code is doing and what exception is being thrown? |
@g012 While looking into #90 I can confirm that after calling If you want to clear the map of all cluster markers, just do:
I'm adding better Javadocs in a pull request I'm working on for #90 to describe this and related cases (as well as fixing an issue that prevented updating the marker contents from the cache). I'm going to close out this issue, but if you can provide more information about the specific use case you're attempting with some sample code we can certainly revisit. |
Hello,
When we clearItems in ClusterManager, it seems the markers cache of DefaultClusterRenderer is not cleared. Calling getMarker() on it will return a marker not matching the current Map, causing an exception.
I resorted to recreate the whole renderer on each clear to avoid that.
Thank you.
The text was updated successfully, but these errors were encountered: