Select to view content in your preferred language

Use Layer symbology in graphicslayer created from query

727
1
01-26-2011 10:28 AM
JasonThiel
Emerging Contributor
This may be very simple but I cannot seem to find an answer anywhere.
I have a layer (.msd) that has a defined symbol.
I use a QueryTask/Query to query that layer and then display the results on a graphics layer.

How do i use the symbol defined on my layer ?  I do not want to define a symbol in flex.  I want to use the one i already defined in the .msd.
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
You can use the DetailsTask to get the LayerDetails and then get the renderer from it's drawingInfo:
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/DetailsTask.html

Another option is to just use a FeatureLayer since you can think of it as a combination of a QueryTask and a GraphicsLayer.
0 Kudos