Skip to content

Commit 202e125

Browse files
authored
fix LODmap issue (#1400)
1 parent 83eb5f2 commit 202e125

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Layers/TiledMapLayer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ export const TiledMapLayer = TileLayer.extend({
115115

116116
// if there is no lod map or an lod map with a proper zoom load the tile
117117
// otherwise wait for the lod map to become available
118-
if (
119-
!this._lodMap ||
120-
(this._lodMap && this._lodMap[this._getZoomForUrl()] !== undefined)
121-
) {
118+
if (this._lodMap && this._lodMap[this._getZoomForUrl()] !== undefined) {
122119
tile.src = this.getTileUrl(coords);
123120
} else {
124121
this.once(

0 commit comments

Comments
 (0)