Select to view content in your preferred language

Popup on vertex of polygon

516
3
Jump to solution
05-29-2013 11:20 AM
EduardoCarvalho
Emerging Contributor
Hi,

I didn't find nothing about how put popup on vertex of the polygon, all event are for polygon, not for vertex of the polygon. It's possible?

My intention. Each vertex will have popup containing input text that will search and update an address point (vertex of the polygon) to the new address.

Obs. I found a solution, but I would use the edit of polygon.
0 Kudos
1 Solution

Accepted Solutions
VinayBansal
Frequent Contributor
You can use vertex click event
http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/edit.html#onvertexclick
But this will work when edit_vertices tool is active

editToolbar.activate(esri.toolbars.Edit.EDIT_VERTICES , evt.graphic)

View solution in original post

0 Kudos
3 Replies
VinayBansal
Frequent Contributor
You can use vertex click event
http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/edit.html#onvertexclick
But this will work when edit_vertices tool is active

editToolbar.activate(esri.toolbars.Edit.EDIT_VERTICES , evt.graphic)
0 Kudos
EduardoCarvalho
Emerging Contributor
vinaybansal thank you very much.

this method was that i needed
0 Kudos
GrantCrosswell
Deactivated User
Im new to JS and would like to use the editToolbar out of the box as much as we can.
Were you able to return the graphic coordinate to be edited from the event "vertex-click"? 
if so would you be able to offer a little more code to show how this is done.
Ideally I'd like a click to be able to edit the coordinates of the vertex from the editToolbar.
Thank you
0 Kudos