From 7f6115e8f2429057a74f7e01f29d21a677807c0b Mon Sep 17 00:00:00 2001 From: Oliver Roick Date: Mon, 20 Jan 2020 20:23:01 +0000 Subject: [PATCH] 1.2.0 --- dist/L.Deflate.js | 2 +- dist/L.Deflate.js.map | 2 +- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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