tombatossals / angular-leaflet-directive

AngularJS directive to embed an interact with maps managed by Leaflet library
http://tombatossals.github.io/angular-leaflet-directive
MIT License
1.5k stars 635 forks source link

Modify markercluster options #1099

Open JoceM opened 8 years ago

JoceM commented 8 years ago

Hello I use the markercluster.js plug-in and I want to modify some of its default options. In particular, I would like to dynamically change the 'disableClusteringAtZoom'. In leaflet, it is done like this: var markers = L.markerClusterGroup({ disableClusteringAtZoom: 17 }); But I'm not sure how to do it in angular-leaflet-directive.

Thanks JoceM

zivlevy commented 8 years ago

look at the answer to this: http://stackoverflow.com/questions/25557220/how-to-customize-markercluster-icon-when-using-angular-leaflet-directive

SnpDeveloper commented 6 years ago

Thanks ziclevy,

How can we do it in maps without layers

https://tombatossals.github.io/angular-leaflet-directive/examples/0509-markers-clustering-without-overlays-example.html

Any help appreciated?