triggers remove event to get rid of timeslider'

This commit is contained in:
Francisco Dans 2015-04-20 14:48:40 +02:00
parent 6e73f8acea
commit db914f65cf
2 changed files with 2 additions and 0 deletions

View File

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

View File

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