It has out-of-box projection defined such as "L.Projection.LonLat" and "L.Projection.Mercator".
It also has methods such as project(<
LatLng>
latlng) that returns a Point.
My question is how do I get a reference to the object so that I can call its 'project' method.
I have a LatLng var 'latLng', and I tried the following to project it , none of them worked:
- L.Projection.project(latLng); [Error message: L.Projection.project is not a function]
- L.Projection.LonLat.project(latLng) [Error message: TypeError: Cannot read property 'project' of undefined]
- Projection.project(latLng) [Error message: Projection not defined]
Thanks in advance.
DW