remove excessive rounding
This commit is contained in:
parent
bd2263928f
commit
90bd2c12b1
@ -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();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user