add Map#layerPointToContainerPoint
This commit is contained in:
parent
14bfaa867b
commit
ad5b885124
@ -214,6 +214,10 @@ L.Map = L.Class.extend({
|
|||||||
return point.subtract(L.DomUtil.getPosition(this._mapPane));
|
return point.subtract(L.DomUtil.getPosition(this._mapPane));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
layerPointToContainerPoint: function(point) {
|
||||||
|
return point.add(L.DomUtil.getPosition(this._mapPane));
|
||||||
|
},
|
||||||
|
|
||||||
layerPointToLatLng: function(point) {
|
layerPointToLatLng: function(point) {
|
||||||
return this.unproject(point.add(this._initialTopLeftPoint));
|
return this.unproject(point.add(this._initialTopLeftPoint));
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user