fix firefox console warnings when animating markers, close #2090

This commit is contained in:
Vladimir Agafonkin 2013-10-11 18:44:10 +03:00
parent 82a0e3b0fb
commit 2629c181d0

View File

@ -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);
},