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

leaflet-virtual-grid

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-virtual-grid - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

leaflet-virtual-grid-v1.0.3.zip

8

CHANGELOG.md

@@ -7,2 +7,10 @@ # Change Log

## [1.0.3]
* Work around https://github.com/Leaflet/Leaflet/issues/4023 in Leaflet 1.0.0-beta.2.
## [1.0.2]
* Fix NPM release
## [1.0.1]

@@ -9,0 +17,0 @@

18

dist/virtual-grid.js

@@ -18,3 +18,3 @@ (function (global, factory) {

options = L.setOptions(this, options);
this._zooming = false;
this._ok = true;
},

@@ -37,3 +37,3 @@

moveend: this._update,
zoomstart: this._zoomstart,
movestart: this._start,
zoomend: this._reset

@@ -55,7 +55,11 @@ };

_zoomstart: function () {
this._zooming = true;
_start: function () {
this._ok = true;
},
_reset: function () {
if (!this._ok) {
return;
}
this._removeCells();

@@ -101,2 +105,6 @@

_update: function () {
if (!this._ok) {
return;
}
if (!this._map) {

@@ -118,2 +126,4 @@ return;

this.fire('cellsupdated');
this._ok = false;
},

@@ -120,0 +130,0 @@

{
"name": "leaflet-virtual-grid",
"version": "1.0.2",
"version": "1.0.3",
"description": "A lightweight DOM-less tile layer for Leaflet that can be used to query APIs with bounding boxes or center/radius as opposed to loading tiles.",

@@ -5,0 +5,0 @@ "main": "dist/virtual-grid.js",

@@ -12,3 +12,3 @@ import L from 'leaflet';

options = L.setOptions(this, options);
this._zooming = false;
this._ok = true;
},

@@ -31,3 +31,3 @@

moveend: this._update,
zoomstart: this._zoomstart,
movestart: this._start,
zoomend: this._reset

@@ -49,7 +49,11 @@ };

_zoomstart: function () {
this._zooming = true;
_start: function () {
this._ok = true;
},
_reset: function () {
if (!this._ok) {
return;
}
this._removeCells();

@@ -95,2 +99,6 @@

_update: function () {
if (!this._ok) {
return;
}
if (!this._map) {

@@ -112,2 +120,4 @@ return;

this.fire('cellsupdated');
this._ok = false;
},

@@ -114,0 +124,0 @@

Sorry, the diff of this file is not supported yet

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