Skip to content

Commit 5240b23

Browse files
prushforprushfor
authored andcommitted
Change (back) what StaticTileLayer.option._leafletLayer points to
1 parent 53314ab commit 5240b23

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/mapml/layers/MapMLLayer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,6 @@ export var MapMLLayer = L.Layer.extend({
15291529
layer._mapmlTileContainer.appendChild(tiles);
15301530
layer._staticTileLayer = M.staticTileLayer({
15311531
pane: layer._container,
1532-
_leafletLayer: layer,
15331532
projection: layer._properties.projection,
15341533
className: 'mapml-static-tile-layer',
15351534
tileContainer: layer._mapmlTileContainer,

src/mapml/layers/StaticTileLayer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export var StaticTileLayer = L.GridLayer.extend({
55
options.maxZoomBound
66
);
77
L.extend(options, this.zoomBounds);
8+
L.extend(options, { _leafletLayer: this });
89
L.setOptions(this, options);
910
this._groups = this._groupTiles(
1011
this.options.tileContainer.getElementsByTagName('map-tile')

0 commit comments

Comments
 (0)