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

Feature request - PRESPIDERFIED markers #155

Open
bongobongo opened this issue Jul 5, 2018 · 0 comments
Open

Feature request - PRESPIDERFIED markers #155

bongobongo opened this issue Jul 5, 2018 · 0 comments

Comments

@bongobongo
Copy link

I would like to see a new feature called PRESPIDERFIED added to OverlappingMarkerSpiderfier.

Let say there are 350 markers in the same location. When these markers get spiderfied it gets kind of messy (to many markers jammed together).

If it was possible to PRESPIDERFY all these markers, into a maximum (developer definable maximum number), e.g.: 50, then when user click the spiderfiable icon before they have been PRESPIDERFIED, then they should be spiderfied into markers which are spiderfiable one more time (where each of these PRESPIDERFIED markers do not "contain" more than 50 spiderfiable markers. This way the map would not be to cluttered with markers and the markers would be more manageable by the user.

It would be nice if possible to control the icon for the markers for these two levels. Personally I would prefer both PRESPIDERFIABLE and SPIDERFIABLE markers to be blue. The only difference, visually, between these to kind of markers, in my application would be a number on the marker (settable by the developer using markersNearMarker on the PRESPIDERFIED marker), showing the user how many markers is below current marker. Then when the user click one of the PRESPIDERFIED markers, I would show those "normally" spiderfied markers as green with no label.

In this particular case with 350 markers in same location, in my applicaation - ideally the user would first see one blue marker which where labeled the number 350 (no difference from todays view). When user click this marker - then he should see the blue PRESPIDERFIED markers (in this particular case - 7 markers), where each where labeled the number 50. When the user click one of these PRESPIDERFIED markers - then he would see 6 PRESPIDERFIED blue markers plus the 50 SPIDERFIED green markers.

Any chance to see this implemented?

Whatever you decide to do, thank you for OverlappingMarkerSpiderfier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant