From c44c128398d82514e39d4706d466babdbcf10b4a Mon Sep 17 00:00:00 2001 From: Oliver Roick Date: Mon, 21 Jan 2019 20:34:48 +0100 Subject: [PATCH] 1.0.0-beta.1 --- README.md | 6 +++--- dist/L.Deflate.js | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f8d91e5..e8508d5 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Substitutes polygons and lines with markers when their screen size falls below a ![Example](https://cloud.githubusercontent.com/assets/159510/7164588/090c06fe-e399-11e4-956d-0283ef7e69cf.gif) -(**NOTE:** The following refence reflects pre-release version 1.0-alpha.6. If you're looking to use the latest stable release, please refer to the [maintenance/0.3 branch](https://github.com/oliverroick/Leaflet.Deflate/tree/maintenance/0.3).) +(**NOTE:** The following refence reflects pre-release version 1.0-beta.1. If you're looking to use the latest stable release, please refer to the [maintenance/0.3 branch](https://github.com/oliverroick/Leaflet.Deflate/tree/maintenance/0.3).) ## Installation @@ -17,7 +17,7 @@ Substitutes polygons and lines with markers when their screen size falls below a Include the source into the `head` section of your document. ```html - + ``` ### Install via NPM @@ -25,7 +25,7 @@ Include the source into the `head` section of your document. If you use the [npm package manager](https://www.npmjs.com/), you can fetch a local copy by running: ```bash -npm install Leaflet.Deflate@1.0.0-alpha.6 +npm install Leaflet.Deflate@1.0.0-beta.1 ``` You will find a copy of the release files in `node_modules/Leaflet.Deflate/dist`. diff --git a/dist/L.Deflate.js b/dist/L.Deflate.js index 27f708c..7e94c48 100644 --- a/dist/L.Deflate.js +++ b/dist/L.Deflate.js @@ -1 +1 @@ -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){if(path instanceof L.Circle){path.addTo(this._map);var bounds=path.getBounds();this._map.removeLayer(path);return bounds}return path.getBounds()},_isCollapsed:function(path,zoom){var bounds=path.computedBounds;var ne_px=this._map.project(bounds.getNorthEast(),zoom);var sw_px=this._map.project(bounds.getSouthWest(),zoom);var width=ne_px.x-sw_px.x;var height=sw_px.y-ne_px.y;return height