New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

leaflet-boundsawarelayergroup

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-boundsawarelayergroup - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

example/index.html

2

dist/leaflet.boundsawarelayergroup.js
/*
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc