Skip to content

Commit

Permalink
Add mapbox-gl-layer to TilePane (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoutj authored and jgravois committed Oct 11, 2019
1 parent 464225d commit d6b4028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leaflet-mapbox-gl.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
this._initContainer();
}

this.getPane().appendChild(this._container);
map.getPanes().tilePane.appendChild(this._container);

this._initGL();

Expand All @@ -56,7 +56,7 @@
L.DomEvent.off(this._map._proxy, L.DomUtil.TRANSITION_END, this._transitionEnd, this);
}

this.getPane().removeChild(this._container);
map.getPanes().tilePane.removeChild(this._container);
this._glMap.remove();
this._glMap = null;
},
Expand Down

0 comments on commit d6b4028

Please sign in to comment.