triggers remove from layer

This commit is contained in:
Francisco Dans 2015-04-20 18:43:40 +02:00
parent 36b4fa9c0c
commit aaa8b819ed

View File

@ -127,6 +127,7 @@ L.TorqueLayer = L.CanvasLayer.extend({
}, },
onRemove: function(map) { onRemove: function(map) {
this.fire('remove');
this._removeTileLoader(); this._removeTileLoader();
map.off({ map.off({
'zoomend': this._clearCaches, 'zoomend': this._clearCaches,