From aaa8b819ed46cedd00aa9d3483337f37f3b5b353 Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Mon, 20 Apr 2015 18:43:40 +0200 Subject: [PATCH] triggers remove from layer --- lib/torque/leaflet/torque.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/torque/leaflet/torque.js b/lib/torque/leaflet/torque.js index ae8e57e..2377251 100644 --- a/lib/torque/leaflet/torque.js +++ b/lib/torque/leaflet/torque.js @@ -127,6 +127,7 @@ L.TorqueLayer = L.CanvasLayer.extend({ }, onRemove: function(map) { + this.fire('remove'); this._removeTileLoader(); map.off({ 'zoomend': this._clearCaches,