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

singleMarkerMode with disableClusteringAtZoom #391

Open
Alloc86 opened this issue Sep 8, 2014 · 5 comments
Open

singleMarkerMode with disableClusteringAtZoom #391

Alloc86 opened this issue Sep 8, 2014 · 5 comments

Comments

@Alloc86
Copy link

Alloc86 commented Sep 8, 2014

Hi there,

everything is working fine so far. Problem is that I want to use singleMarkerMode but at the same time want the clusters to be invisible at a given zoom level with disableClusteringAtZoom. Unfortunately setting singleMarkerMode disables the disableClusteringAtZoom. Would it be possible to make it so that it respects both?

Regards,
Chris

@danzel
Copy link
Member

danzel commented Sep 8, 2014

singleMarkerMode changes the icon of the marker, so nope sorry.
You can make the MarkerClusterGroup be removed from the map at that zoom level and replace it with a LayerGroup without any clustering however.

@Alloc86
Copy link
Author

Alloc86 commented Sep 8, 2014

Hm, ok, gotta figure this out.
Though I think that maybe this plugin should handle this case as it obviously is exactly what "disableClusteringAtZoom" says it should do ;)

Thanks for the quick reply :)

@soronubot
Copy link

Had the same issue. Thanks for the workaround.

@vikas5914
Copy link

can anyone give me a example code . i am not able solve this problem

@scrudge
Copy link

scrudge commented Nov 7, 2021

I know this is an old thread. But can someone show how to handle having a cluster of 1 until a certain zoom level?

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

5 participants