I have a leaflet map created from an image using imageOverlay for indoor map rendering purposes, I'm wondering given the leaflet latitudes and longitudes how to get the x,y pixels of the image.
The simplest conversion for setting and getting pixel coordinates from Lat/Lng system is to use:
project(<LatLng> latlng, <Number> zoom)
unproject(<Point> point, <Number> zoom)
Always you can refer to Leaflet reference
P.S: consider the Map CRS is set to Simple
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With