Skip to content

Commit

Permalink
resetting obsolete queries
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverheilig committed Jul 30, 2019
1 parent 0dfedd1 commit d57a026
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Leaflet.PtvLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,15 +671,15 @@ L.PtvLayer.Tiled = L.TileLayer.extend({
},

_setView: function (center, zoom, noPrune, noUpdate) {
// var tileZoom = Math.round(zoom);
// if ((this.options.maxZoom !== undefined && tileZoom > this.options.maxZoom) ||
// (this.options.minZoom !== undefined && tileZoom < this.options.minZoom)) {
// tileZoom = undefined;
// }
var tileZoom = Math.round(zoom);
if ((this.options.maxZoom !== undefined && tileZoom > this.options.maxZoom) ||
(this.options.minZoom !== undefined && tileZoom < this.options.minZoom)) {
tileZoom = undefined;
}

// var tileZoomChanged = this.options.updateWhenZooming && (tileZoom !== this._tileZoom);
var tileZoomChanged = this.options.updateWhenZooming && (tileZoom !== this._tileZoom);

// if (tileZoomChanged)
if (tileZoomChanged)
this._resetQueue();

L.TileLayer.prototype._setView.call(this, center, zoom, noPrune, noUpdate);
Expand Down

0 comments on commit d57a026

Please sign in to comment.