diff --git a/lib/torque/leaflet/canvas_layer.js b/lib/torque/leaflet/canvas_layer.js index 885320d..4245e10 100644 --- a/lib/torque/leaflet/canvas_layer.js +++ b/lib/torque/leaflet/canvas_layer.js @@ -79,7 +79,7 @@ L.CanvasLayer = L.Class.extend({ }, onRemove: function (map) { - map._container.removeChild(this._staticPane); + this._staticPane.removeChild(this._canvas); map.off({ 'viewreset': this._reset, 'move': this._render,