Skip to content
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

AdvancedMarker not showing up when cluster is expanded (was: Incorrect display of markers on click(onClusterClick) on markercluster) #740

Open
dspex opened this issue Aug 30, 2023 · 6 comments
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@dspex
Copy link

dspex commented Aug 30, 2023

When clicking on the markercluster, the number of clusters is displayed incorrectly, but if you move the map, the error disappears and the number of clusters corresponds to the number on the markercluster.

This error can not always be tracked, the error occurs periodically!

https://jsfiddle.net/Novakand/w86dyebc/

2023-08-30.19.41.52.online-video-cutter.com.mp4
@dspex dspex added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Aug 30, 2023
@dspex
Copy link
Author

dspex commented Aug 30, 2023

2023-08-30.20.06.40.online-video-cutter.com.mp4
@wangela
Copy link
Member

wangela commented Aug 30, 2023

If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.

@dspex Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

@novakand
Copy link

Let's hope it will be fixed in the new version.

@novakand
Copy link

novakand commented Sep 1, 2023

This is especially noticeable with the new google.maps.marker.AdvancedMarkerView parameter collisionBehavior:
google.maps.CollisionBehavior.OPTIONAL_AND_HIDES_LOWER_PRIORITY

@usefulthink usefulthink changed the title Incorrect display of markers on click(onClusterClick) on markercluster Sep 29, 2023
@usefulthink
Copy link
Contributor

I can somewhat reliably reproduce that using the provided jsfiddle:

  • look for a place where a cluster of 5-7 markers is relatively isolated
  • click the cluster to expand it
  • quite often not all markers are immediately visible in the expanded view. They will only appear when the map is moved (notable: they also don't get rendered when the map is resized)
@usefulthink usefulthink added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed triage me I really want to be triaged. labels Sep 29, 2023
@renenybo
Copy link

I can somewhat reliably reproduce that using the provided jsfiddle:

  • look for a place where a cluster of 5-7 markers is relatively isolated
  • click the cluster to expand it
  • quite often not all markers are immediately visible in the expanded view. They will only appear when the map is moved (notable: they also don't get rendered when the map is resized)

My workaround is to catch the clusterclick, and recreate the clusters there. The users will not notice the flickering, because of the zooming on the map.

The bug also happens when zooming in fast (not like panning like zoom) to a marker, then the markers of the expanded clusters will sometimes not be redrawn before the map is moved on the screen. Also here I recreate the clusters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
5 participants