Select to view content in your preferred language

Reference to graphics on map

630
2
10-27-2011 03:28 AM
FaizanTayyab
Deactivated User
Does anybody know how to obtain a reference to the graphics drawn on the map from a widget other then the draw widget?

Thanks
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Faizan,

   When ever the GraphicsLayer is added to the map give it a name and id that way you can find it just like you would any other map layer by using map.getLayer.
0 Kudos
FaizanTayyab
Deactivated User
Faizan,

   When ever the GraphicsLayer is added to the map give it a name and id that way you can find it just like you would any other map layer by using map.getLayer.


Thanks alot Robert, i will give it a go. Basically i am trying to mode the save graphic code from the Draw Widget to a single save widget and i believe the code i have for saving the graphics was provided by yourself.

Thanks
0 Kudos