Removing unneeded L.Map._latLngToNewLayerPoint, see #3895

This commit is contained in:
Iván Sánchez Ortega 2015-10-07 12:30:20 +02:00
parent be43485e02
commit 08c779367f

View File

@ -763,11 +763,6 @@ L.Map = L.Evented.extend({
return this.project(center, zoom)._subtract(viewHalf)._add(this._getMapPanePos())._round();
},
_latLngToNewLayerPoint: function (latlng, zoom, center) {
var topLeft = this._getNewPixelOrigin(center, zoom);
return this.project(latlng, zoom)._subtract(topLeft);
},
// layer point of the current center
_getCenterLayerPoint: function () {
return this.containerPointToLayerPoint(this.getSize()._divideBy(2));