Plugin Contributor
hupe13
(@hupe13)
One possibility would be to cluster the markers.
This looks brilliant but I am struggling to get it to work.
Do I simply need to add
[cluster radius=90 disableClusteringAtZoom=10]
[zoomhomemap]
after the list of [leaflet-marker… ] points?
Thanks
Plugin Contributor
hupe13
(@hupe13)
Yes. The first command is [leaflet-map ...] of course. 😉
Silly me, I did notice this was an extra plugin to install!
One question though… if 3 or 4 are at exactly the same location I assume some will always be hidden from being able to click on them for details?
Plugin Contributor
hupe13
(@hupe13)
Please play with the options spiderfyOnMaxZoom and disableClusteringAtZoom and [leaflet-map max_zoom=... ].
Thanks for the prompt reply. I am struggling with this now.
Do I need to install extra files? Maybe just the .js file or is it already installed with the Extension?
Do I just add spiderfyOnMaxZoom into the cluster shortcut?
Plugin Contributor
hupe13
(@hupe13)
If you have the two plugins installed, you should use the shortcodes like:
[leaflet-map height=500 max_zoom=9 fitbounds]
[leaflet-marker lat=... lng=... ]xxx[/leaflet-marker] //many markers
[cluster radius=90 disableClusteringAtZoom=10 spiderfyOnMaxZoom]
[zoomhomemap fit]
[fullscreen]
I realize I need to write an even better documentation. 😉
Magic. It was the max_zoom interaction causing it not to work.
Many thanks.
Super plugins.