fixed gmaps cleanup fixed #18

This commit is contained in:
javi 2013-10-10 10:59:52 +02:00
parent d0ab61ef6d
commit 483923c79a

View File

@ -155,8 +155,6 @@ GMapsTorqueLayer.prototype = _.extend({},
return this.stepToTime(this.key);
},
/**
* set the cartocss for the current renderer
*/
@ -172,6 +170,11 @@ GMapsTorqueLayer.prototype = _.extend({},
redraw: function() {
this.scheduleUpdate();
},
onRemove: function() {
CanvasLayer.prototype.onRemove.call(this);
this.animator.stop();
}
});