Skip to content

Commit d071ae2

Browse files
author
Peter Rushforth
committed
Remove call to parent onRemove, was causing add/remove errors
1 parent cf766e6 commit d071ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapml/layers/MapTileLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export var MapTileLayer = GridLayer.extend({
5555
onRemove: function (map) {
5656
// Clean up pending tiles
5757
this._pendingTiles = {};
58+
// remove _container from the dom, but don't delete it
5859
DomUtil.remove(this._container);
59-
GridLayer.prototype.onRemove.call(this, map);
6060
},
6161

6262
_handleZoomChange: function () {

0 commit comments

Comments
 (0)