From 7e803644d9a9a9c5040f737393b0086434639e8a Mon Sep 17 00:00:00 2001 From: Oliver Roick Date: Tue, 6 Nov 2018 07:22:59 -0500 Subject: [PATCH] 1.0.0-alpha.5 --- 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 442e5c9..4972f69 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.4. 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-alpha.5. 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.4 +npm install Leaflet.Deflate@1.0.0-alpha.5 ``` 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 7065c03..36a5a09 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._allLayers=[];L.FeatureGroup.prototype.initialize.call(this,[],options);if(options.markerCluster){this.clusterLayer=L.markerClusterGroup(this.options.markerClusterOptions)}},_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