From 90bd2c12b14edf7f5b5989b83fac541bfaab793e Mon Sep 17 00:00:00 2001 From: Mourner Date: Thu, 7 Apr 2011 18:59:29 +0300 Subject: [PATCH] remove excessive rounding --- src/map/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/Map.js b/src/map/Map.js index 423448bd..abeb8287 100644 --- a/src/map/Map.js +++ b/src/map/Map.js @@ -389,7 +389,7 @@ L.Map = L.Class.extend({ }, _getNewTopLeftPoint: function(center) { - var viewHalf = this.getSize().divideBy(2, true); + var viewHalf = this.getSize().divideBy(2); return this.project(center).subtract(viewHalf).round(); },