diff --git a/dist/L.Deflate.js b/dist/L.Deflate.js index b4c4128..bbd68fe 100644 --- a/dist/L.Deflate.js +++ b/dist/L.Deflate.js @@ -1 +1 @@ -"use strict";L.Deflate=L.FeatureGroup.extend({options:{minSize:10,markerCluster:false,markerOptions:{},markerClusterOptions:{}},initialize:function(options){L.Util.setOptions(this,options);this._layers=[];this._needsPrepping=[];this._featureLayer=options.markerCluster?L.markerClusterGroup(this.options.markerClusterOptions):L.featureGroup(options)},_getBounds:function(path){var bounds;if(path instanceof L.Circle){path.addTo(this._map);bounds=path.getBounds();this._map.removeLayer(path);return bounds}return path.getBounds()},_isCollapsed:function(path,zoom){var bounds=path.computedBounds;var northEastPixels=this._map.project(bounds.getNorthEast(),zoom);var southWestPixels=this._map.project(bounds.getSouthWest(),zoom);var width=northEastPixels.x-southWestPixels.x;var height=southWestPixels.y-northEastPixels.y;return height