Hi all, at onMapClick event I wish I could add, near the MarkerGraphic, a link to an URL with coordinate too.
Has anyone done anything like that?
I have not seen any custom or otb widget that meets your desired workflow, so you would have to create one.
You could create the point on the map using the WAB DrawBox dijit and then add the graphic to a GraphicsLayer in the map and then open a popup with the coordinates and a url link in it.
Many thanks Robert for your prompt replies.
Is there a sample of DrawBox?
No but the draw, query widget and my identify, eLocate, eSearch, Aloha Threat Zone all use it. So you can borrow code from those.
Retrieving data ...