Click an icon/graphic and move it?

618
2
Jump to solution
11-08-2016 10:01 AM
DavidChrest
Occasional Contributor II

I know how to add an point icon/graphic to a map by clicking the map or with coordinates in code. I was wondering if that icon/graphic could then be moved across the map a bit and placed somewhere else with a mouse click-drag or something like that.

Thanks for any help provided.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

David,

 Sure you use the Edit class for that:

Edit | API Reference | ArcGIS API for JavaScript 3.18 

To move a feature, once the Edit toolbar is activated with that feature, press down on the feature, drag it, then let go at the new location.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

David,

 Sure you use the Edit class for that:

Edit | API Reference | ArcGIS API for JavaScript 3.18 

To move a feature, once the Edit toolbar is activated with that feature, press down on the feature, drag it, then let go at the new location.
0 Kudos
DavidChrest
Occasional Contributor II

Ah yes, I see. Thanks so much.

0 Kudos