leaflet-boundsawarelayergroup
Advanced tools
Comparing version 0.0.0 to 1.0.0
/* | ||
leaflet-boundsawarelayergroup - 0.0.0, Leaflet.LayerGroup plugin to render only layers in the current map bounds | ||
leaflet-boundsawarelayergroup - 1.0.0, Leaflet.LayerGroup plugin to render only layers in the current map bounds | ||
git://github.com/brandoncopeland/Leaflet.boundsAwareLayerGroup.git | ||
@@ -4,0 +4,0 @@ (c) 2013 Brandon Copeland <br@ndoncopeland.com> |
/* | ||
leaflet-boundsawarelayergroup - 0.0.0, Leaflet.LayerGroup plugin to render only layers in the current map bounds | ||
leaflet-boundsawarelayergroup - 1.0.0, Leaflet.LayerGroup plugin to render only layers in the current map bounds | ||
git://github.com/brandoncopeland/Leaflet.boundsAwareLayerGroup.git | ||
@@ -4,0 +4,0 @@ (c) 2013 Brandon Copeland <br@ndoncopeland.com> |
{ | ||
"name": "leaflet-boundsawarelayergroup", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"description": "Leaflet.LayerGroup plugin to render only layers in the current map bounds", | ||
@@ -5,0 +5,0 @@ "main": "dist/leaflet.boundsawarelayergroup.js", |
@@ -6,4 +6,6 @@ Leaflet.boundsAwareLayerGroup | ||
Adding many layers to a map can significantly decrease browser performance, even if the layers aren't currently visible because they're not within the map bounds. Leaflet.boundsAwareLayerGroup patches Leaflet.LayerGroup to manage adding layers within the map bounds and removing layers that are not on each bounds change (zoom, pan, etc...). | ||
Adding lots of layers to a map can kill browser performance, even if the layers are outside the map bounds and not visible to the user. Leaflet.boundsAwareLayerGroup patches Leaflet.LayerGroup to manage only rendering in the map layers in the map bounds. On each map bounds change (zoom, pan, whatever...), layers in the new bounds are added, layers outside are removed. | ||
[See the plugin in action][] when comparing performance with and without Leaflet.boundsAwareLayerGroup for 5,000 markers. | ||
## Using the plugin | ||
@@ -36,2 +38,4 @@ | ||
[leaflet.layergroup]: http://leafletjs.com/reference.html#layergroup | ||
[leaflet.featuregroup]: http://leafletjs.com/reference.html#featuregroup | ||
[leaflet.featuregroup]: http://leafletjs.com/reference.html#featuregroup | ||
[see the plugin in action]: http://brandoncopeland.github.io/Leaflet.boundsAwareLayerGroup/example/ |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18772
10
1
39