diff --git a/dist/L.Deflate.js b/dist/L.Deflate.js index bbd68fe..d9da4a4 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:{},markerType:L.marker},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){if(path instanceof L.Circle){path.addTo(this._map);const bounds=path.getBounds();this._map.removeLayer(path);return bounds}return path.getBounds()},_isCollapsed:function(path,zoom){const bounds=path.computedBounds;const northEastPixels=this._map.project(bounds.getNorthEast(),zoom);const southWestPixels=this._map.project(bounds.getSouthWest(),zoom);const width=Math.abs(northEastPixels.x-southWestPixels.x);const height=Math.abs(southWestPixels.y-northEastPixels.y);return height