leaflet-virtual-grid
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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,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
144975
18
553