customize coordinate widget

503
3
09-22-2017 06:21 AM
NatashaManzuiga
Occasional Contributor

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?

Thanks,

Naty 

Tags (1)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Naty,

   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.

NatashaManzuiga
Occasional Contributor

Many thanks Robert for your prompt replies.

Is there a sample of DrawBox?

Naty

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Naty,

   No but the draw, query widget and my identify, eLocate, eSearch, Aloha Threat Zone all use it. So you can borrow code from those.

0 Kudos