adds call to gmaps onRemove

This commit is contained in:
Francisco Dans 2015-04-20 15:09:19 +02:00
parent e0c68c17e5
commit c50b60db9c

View File

@ -294,6 +294,7 @@ GMapsTorqueLayer.prototype = torque.extend({},
},
onRemove: function() {
this.fire('remove');
CanvasLayer.prototype.onRemove.call(this);
this.animator.stop();
this._removeTileLoader();