Skip to content

Commit 0dc8744

Browse files
authored
Merge pull request #1413 from gavinr-maps/revert-1400
Revert "fix LODmap issue (#1400)"
2 parents 7e8d551 + c4d9a74 commit 0dc8744

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Layers/TiledMapLayer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ 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 (this._lodMap && this._lodMap[this._getZoomForUrl()] !== undefined) {
118+
if (
119+
!this._lodMap ||
120+
(this._lodMap && this._lodMap[this._getZoomForUrl()] !== undefined)
121+
) {
119122
tile.src = this.getTileUrl(coords);
120123
} else {
121124
this.once(

0 commit comments

Comments
 (0)