triggers remove event to get rid of timeslider'

M
Francisco Dans 10 years ago
parent 6e73f8acea
commit db914f65cf

@ -21,6 +21,7 @@ GMapsTileLoader.prototype = {
},
_removeTileLoader: function() {
this.fire('remove');
for(var i in this._listeners) {
google.maps.event.removeListener(this._listeners[i]);
}

@ -11,6 +11,7 @@ L.Mixin.TileLoader = {
},
_removeTileLoader: function() {
this.fire('remove');
this._map.off({
'moveend': this._updateTiles
}, this);

Loading…
Cancel
Save