listens to drag event instead of move to re-render

This commit is contained in:
Francisco Dans 2015-05-05 15:48:40 +02:00
parent ad9f7c40b1
commit 3476c74f1c

View File

@ -85,7 +85,7 @@ L.CanvasLayer = L.Class.extend({
}, this);
map.on({ 'viewreset': this._reset }, this);
map.on('move', this.render, this);
map.on('drag', this.render, this);
map.on('resize', this._reset, this);
if (this.options.zoomAnimation) {