-
-
Notifications
You must be signed in to change notification settings - Fork 61
Add option to disable cluster animation #832
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
Add option to disable cluster animation #832
Conversation
📝 WalkthroughWalkthroughAdds a boolean "clusteranimate" configuration parameter (default true) to the Leaflet service, exposes a translation key, and forwards that parameter to the MarkerClusterGroup initialization as the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
resources/leaflet/LeafletCluster.js(1 hunks)src/LeafletService.php(1 hunks)
🔇 Additional comments (1)
resources/leaflet/LeafletCluster.js (1)
13-13: Theanimateoption is supported and correctly implemented.The
animateoption is a valid configuration parameter for MarkerClusterGroup that accepts boolean values to control whether cluster split/merge and spiderfy animations run. Your implementation correctly passesoptions.clusteranimatethrough to the library, enabling users to disable animations when needed.
4cfa6c8 to
1aa2976
Compare
9feb26e
into
ProfessionalWiki:master
Uh oh!
There was an error while loading. Please reload this page.
We have some visual bugs caused by the animation in Leaflet.markercluster.
This patch adds a new clusteranimate option that allows disabling cluster animation.
Summary by CodeRabbit
New Features
Documentation / Localization
✏️ Tip: You can customize this high-level summary in your review settings.