listens to drag event instead of move to re-render
This commit is contained in:
parent
ad9f7c40b1
commit
3476c74f1c
@ -85,7 +85,7 @@ L.CanvasLayer = L.Class.extend({
|
|||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
map.on({ 'viewreset': this._reset }, 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);
|
map.on('resize', this._reset, this);
|
||||||
|
|
||||||
if (this.options.zoomAnimation) {
|
if (this.options.zoomAnimation) {
|
||||||
|
Loading…
Reference in New Issue
Block a user