Skip to content

Commit

Permalink
potentially fix LODmap issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinr-maps committed Feb 4, 2025
1 parent e827880 commit 0da8f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layers/TiledMapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()] !== undefined)) {
if (this._lodMap && this._lodMap[this._getZoomForUrl()] !== undefined) {
tile.src = this.getTileUrl(coords);
} else {
this.once('lodmap', function () {
Expand Down

0 comments on commit 0da8f4d

Please sign in to comment.