mapbox.js icon indicating copy to clipboard operation
mapbox.js copied to clipboard

L.mapbox.map() and MarkerCluster spiderfyOnMaxZoom

Open alrick opened this issue 9 years ago • 4 comments

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!

alrick avatar Apr 28 '15 07:04 alrick

Can you confirm that this is actually true in this example? I'm seeing both examples behaving correctly.

tmcw avatar May 14 '15 14:05 tmcw

Hi Tom,

Here is what I get with the two examples with Chrome on Mac OSX :

mapbox

map

alrick avatar May 18 '15 07:05 alrick

I'm encountering the exact same issue: not spiderify on MaxZoom, when using Mapbox Leaflet along with the Mapbox Cluster plugin. Any idea?

etiennebaque avatar Oct 05 '16 02:10 etiennebaque

Seeing the same issue. Any updates?

djbobbydrake avatar Jun 02 '17 19:06 djbobbydrake