Hide spiderfied markers on a big zoom. Fixes #268

This commit is contained in:
danzel
2013-10-31 09:13:55 +13:00
parent 0e73130b43
commit cf40d8aa86
+2 -3
View File
@@ -353,10 +353,9 @@ L.MarkerClusterGroup.include({
if (this._map.options.zoomAnimation) {
this._map.on('zoomstart', this._unspiderfyZoomStart, this);
} else {
//Browsers without zoomAnimation don't fire zoomstart
this._map.on('zoomend', this._unspiderfyWrapper, this);
}
//Browsers without zoomAnimation or a big zoom don't fire zoomstart
this._map.on('zoomend', this._noanimationUnspiderfy, this);
if (L.Path.SVG && !L.Browser.touch) {
this._map._initPathRoot();