New to the forum. I also posted this question on Stackoverflow, not sure it is the same forum.
I am trying to build a Vt of 360 degree panopictures with OSM map using Leaflet.
I would need a function which, given the LatLng coord of a point, returns the pixel coordinates x, y of that point relative to the origin pixel (to the top left corner of the map container) when moving (i.e panning/dragging) the map and when zooming the map. For example: when the map does not move, x=30, when panning the map x changes following the actual map move accordingly.