remove excessive rounding

This commit is contained in:
Mourner 2011-04-07 18:59:29 +03:00
parent bd2263928f
commit 90bd2c12b1

View File

@ -389,7 +389,7 @@ L.Map = L.Class.extend({
}, },
_getNewTopLeftPoint: function(center) { _getNewTopLeftPoint: function(center) {
var viewHalf = this.getSize().divideBy(2, true); var viewHalf = this.getSize().divideBy(2);
return this.project(center).subtract(viewHalf).round(); return this.project(center).subtract(viewHalf).round();
}, },