From c236b95227789feca270a665ce72b7c7d11d0b64 Mon Sep 17 00:00:00 2001 From: Vasyl Moskalov Date: Tue, 14 Nov 2023 16:21:42 +0800 Subject: [PATCH] Will fix https://github.com/Esri/esri-leaflet/issues/1380 --- src/Layers/TiledMapLayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Layers/TiledMapLayer.js b/src/Layers/TiledMapLayer.js index fd012ed6f..3a52a829a 100644 --- a/src/Layers/TiledMapLayer.js +++ b/src/Layers/TiledMapLayer.js @@ -73,7 +73,7 @@ export var TiledMapLayer = TileLayer.extend({ x: tilePoint.x, y: tilePoint.y, // try lod map first, then just default to zoom level - z: (this._lodMap && this._lodMap[zoom]) ? this._lodMap[zoom] : zoom + z: (this._lodMap && this._lodMap[zoom] !== undefined) ? this._lodMap[zoom] : zoom }, this.options)); }, @@ -95,7 +95,7 @@ export var TiledMapLayer = TileLayer.extend({ // if there is no lod map or an lod map with a proper zoom load the tile // otherwise wait for the lod map to become available - if (!this._lodMap || (this._lodMap && this._lodMap[this._getZoomForUrl()])) { + if (!this._lodMap || (this._lodMap && this._lodMap[this._getZoomForUrl()] !== undefined)) { tile.src = this.getTileUrl(coords); } else { this.once('lodmap', function () {