mapbox.js
mapbox.js copied to clipboard
L.mapbox.map() and MarkerCluster spiderfyOnMaxZoom
Hi there,
I've found some inconsistency between L.mapbox.map()
and L.map()
with MarkerCluster and the option spiderfyOnMaxZoom
set as false.
Take a look at the two examples below:
- https://jsfiddle.net/alrick/xcz2tuww/
L.mapbox.map()
(you should enter your privatekey) - https://jsfiddle.net/alrick/oe03m2tx/
L.map()
With L.mapbox.map()
the cluster is becoming a single marker at max zoom. With L.map()
it remains a cluster, what spiderfyOnMaxZoom: false
is supposed to do.
Any advice? As a quick fix, should I use the second example to use mapbox with L.map()
instead of L.mapbox.map()
or is it a better way?
Thanks!
Can you confirm that this is actually true in this example? I'm seeing both examples behaving correctly.
Hi Tom,
Here is what I get with the two examples with Chrome on Mac OSX :
I'm encountering the exact same issue: not spiderify on MaxZoom, when using Mapbox Leaflet along with the Mapbox Cluster plugin. Any idea?
Seeing the same issue. Any updates?