Select to view content in your preferred language

GraphicsLayer added not not displayed

838
2
Jump to solution
06-15-2012 09:17 AM
ShaningYu
Honored Contributor
Based Zoom to Found Features http://help.arcgis.com/en/webapi/flex/samples/index.html#/Zoom_to_found_features/01nq0000005n000000/, I created a widget.  It works well except for adding the graphicsLayer on the map.  I run the debug.  From the Expressions window, it shows the values of its graphicsLayer and graphicProvider.  But  the graphicsLyaer does not display. 
I wish someone can help for his/her experience.  Thanks.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ShaningYu
Honored Contributor
Solved with
map.addLayer(myGraphicsLayer);

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Shaning,

   If you mean widget as in Flex Viewer than you are still posting to the wrong forum. Or maybe you are using the term widget loosely. Let me know so I know how to procede in answering you.
0 Kudos
ShaningYu
Honored Contributor
Solved with
map.addLayer(myGraphicsLayer);
0 Kudos