Custom Trigger Spiderify

42 views
Skip to first unread message

Kevin Hylant

unread,
Nov 15, 2015, 3:04:55 PM11/15/15
to Leaflet
Hello there,

I am hoping to trigger spiderify on any zoom level below a certain point so that users don't have to quick so many times to view overlapping pins. Currently it seems like you support spidering at `maxZoom`, it is possible to customize it in the manner I described?
If so, how do you recommend I accomplish it?

Cheers,
Kevin

ghybs

unread,
Nov 15, 2015, 8:50:27 PM11/15/15
to Leaflet
Hi,

Are you talking about the spiderfy functionality of Leaflet.markercluster?

In that case, the feature of spiderfying at current zoom if all child markers are at the exact same position is already implemented in the source files of that plugin, but the dist file has not been updated with it.
You could patch with just the missing code, re-build the dist files yourself or grab one from someone else.

Please refer to these posts:
- https://stackoverflow.com/questions/33396289/mapbox-no-zoom-for-cluster-based-at-exact-same-location
- https://github.com/Leaflet/Leaflet.markercluster/issues/593

Hope this helps.

Kevin Hylant

unread,
Nov 15, 2015, 9:31:23 PM11/15/15
to leafl...@googlegroups.com
Thank you!


KEVIN
HYLANT  
 CLASSPASS
  

  FiS '14 
 
BC '11  
  
248 885 4004
222

--

---
You received this message because you are subscribed to a topic in the Google Groups "Leaflet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leaflet-js/syPj_lmXX-o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages