-
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
Cluster with markers in same location take default design #655
Comments
@beli63 Thanks for reporting this. Are you able to share code you used to create the above screenshot? |
@barbeau , I use CustomMarkerClusteringDemoActivity Demo's code. |
@barbeau Okay thanks |
still facing this bug in 1.0.2, any update? |
Sorry, no update yet! |
I am also encountering this bug. By changing the algorithm to I am not sure if there is anything erroneous is occurring with the algorithms... hope that helps! |
A temporary fix would be to just overwrite "onClusterUpdated" with an empty implementation. Seems to fix the issue for me. |
@B3nedikt thanks. Fixed this problem |
@B3nedikt Yes I valid, it fixed the problem |
Looking at the code, it looks like this behavior is new in v1.0 due to a side-effect of PR #627, part of which fixes an issue with existing markers not reflecting updated contents. For example, as discussed in #90, prior to #627 if you updated a marker's position, title, or snippet, that update wouldn't be reflected on the map. PR #627 fixes this by updating the cached cluster marker using a new protected method So, to fix this, you should override Similarly, you should override the implementation of An aside - the implementation can't be identical because you're working with a Please give that a shot and see if it works! |
See #655 (comment) - we need to update the custom clustering demo for the best practices surrounding marker caching, following the implementation of #627 in v1. This means overriding onClusterUpdated() and onClusterItemUpdated() with the same implementations as onBeforeClusterRendered() and onBeforeClusterItemRendered(), respectively.
FYI, I've opened a pull request at #679 which shows the changes discussed above for the |
See #655 (comment) - we need to update the custom clustering demo for the best practices surrounding marker caching, following the implementation of #627 in v1. This means overriding onClusterUpdated() and onClusterItemUpdated() with the same implementations as onBeforeClusterRendered() and onBeforeClusterItemRendered(), respectively.
Closed by #679 |
Hello,
I've update the library from 0.6.2 to 1.0.0 and I have a trouble with Cluster (Bug is not present in version 0.6.2)
I have Custom Cluster
When I have markers in same location, the Cluster take the default design and not mine
The text was updated successfully, but these errors were encountered: