fix firefox console warnings when animating markers, close #2090
This commit is contained in:
parent
82a0e3b0fb
commit
2629c181d0
@ -207,7 +207,7 @@ L.Marker = L.Class.extend({
|
||||
},
|
||||
|
||||
_animateZoom: function (opt) {
|
||||
var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center);
|
||||
var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center).round();
|
||||
|
||||
this._setPos(pos);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user