API for click-drag-release scenrio

Hi all,

Im a bit overwhelmed by all the possibilities of OSM.
However I have a really simple scenario - maybe someone can just point me to the right direction.

In a given OSM map on my page I need to Click, drag, release and then get the world coordinates of the click and the release in JavaScript.

Any hint is welcome :slight_smile:
thanks in advance