-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Spiderfied icons are too close together making tapping individual ones difficult #100
Comments
If you take a look at the top of MarkerCluster.Spiderfier.js there are some options related to how far away icons are placed. |
I messed with all of those options in As for doing a patch, aside from hardcoding the variables, it would take me a long time to find how to make new options and make them available to the spiderfy classes (but my JS experience improves weekly). |
Weird, I thought they'd do it. |
Have added an option to MarkerClusterGroup: spiderfyDistanceMultiplier. |
Wow, I can be a doofus sometimes. I was modifying the http://stevevance.net/files/spiderfy_twitter_icons_after.png |
My use case is on a mobile device that accepts only finger taps. A cluster icon is shown. The user taps the cluster icon and the marker icons then spiderfy. A user taps one of the markers and the popup opens. A user attempts to tap a second marker that was in the same cluster but either pans the map or pops up the first marker because their tap didn't have the best aim (maybe they have fat fingers).
Or, the icons are placed too close together. Their distance from each other isn't based on icon size, which could potentially solve this problem.
Example image:
http://stevevance.net/files/spiderfy_twitter_icons.png
The text was updated successfully, but these errors were encountered: