diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index f76128b92..62c2f1bbb 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -525,8 +525,8 @@ L.TileLayer = L.GridLayer.extend({ var obj = JSON.parse(textMsg); var viewId = parseInt(obj.viewId); - // Ignore if viewid=0 or is same as ours - if (viewId === 0 || viewId === this._viewId) { + // Ignore if viewid is same as ours + if (viewId === this._viewId) { return; } @@ -550,8 +550,8 @@ L.TileLayer = L.GridLayer.extend({ var obj = JSON.parse(textMsg); var viewId = parseInt(obj.viewId); - // Ignore if viewid=0 or is same as ours - if (viewId === 0 || viewId === this._viewId) { + // Ignore if viewid is same as ours + if (viewId === this._viewId) { return; }