How to add a marker to a Raphael 'paper' in javascript?
I need a marker that behaves much like adding a marker to a map. On double click cause a marker to be displayed at the point that was clicked, and returns the x/y pixel coordinates of the point that was clicked.

I have Raphael paper:

    var R = Raphael("paper", 500, 500);

with paths (`R.path("M 92.3456 ... 37.0934 Z")`) on it that defines shapes. And I have to be albe to add markers on this paper with shapes. 

I am not a javascript programmer so I don't really even know where to start. So any help here is much appreciated!
How to add a marker to a Raphael 'paper' in javascript?
===

I need a marker that behaves much like adding a marker to a map. On double click cause a marker to be displayed at the point that was clicked, and returns the x/y pixel coordinates of the point that was clicked.

I have Raphael paper:

    var R = Raphael("paper", 500, 500);

with paths (`R.path("M 92.3456 ... 37.0934 Z")`) on it that defines shapes. And I have to be albe to add markers on this paper with shapes. 

I am not a javascript programmer so I don't really even know where to start. So any help here is much appreciated!