Skip to content

Commit

Permalink
Will fix Esri#1380
Browse files Browse the repository at this point in the history
  • Loading branch information
mvtm-dn committed Nov 14, 2023
1 parent adf006c commit c236b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Layers/TiledMapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},

Expand All @@ -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 () {
Expand Down

0 comments on commit c236b95

Please sign in to comment.