diff --git a/README.md b/README.md index e8508d5..216d12b 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ 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-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 ### Using a hosted version @@ -17,7 +15,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 +23,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-beta.1 +npm install Leaflet.Deflate ``` 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 7e94c48..b4c4128 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