Select to view content in your preferred language

Symbology displaying incorrectly in flex web app

701
2
Jump to solution
06-12-2014 09:42 AM
KeithWeber1
Deactivated User
I have a map service that was created by publishing a map document. In the map document, there is a line feature layer with a unique value renderer where the symbol for each line is the symbol 'Arrow at End' and the color of the line is based on one of the attributes in the layer. After publishing the map document, I can browse to the url of the REST services and click on the 'View In: ArcGIS JavaScript' link and the layer is drawn correctly. However, when I load the layer into my flex web application, the symbol is drawn as a bold black line. There is no arrow and the color of the line is lost. I also display a legend and the legend shows the unique values but the symbol is the same for every value (The bold black line with no arrow). Any suggestions on what I should take a look at? Below is how I setup my feature layer in my web application.

<esri:FeatureLayer id="myLayer"    name="My Layer"    outFields="[Field1,Field2]"   url="{myUrl}"   mode="snapshot"   selectionColor="0x73BE69"   >
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Keith,

  An esri FeatureLayer does not support cartographic line symbols (which is what you are talking about). You will see exactly what you want if you add the layer to the mp as a ArcGISDynamicMapServiceLayer though.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Keith,

  An esri FeatureLayer does not support cartographic line symbols (which is what you are talking about). You will see exactly what you want if you add the layer to the mp as a ArcGISDynamicMapServiceLayer though.
0 Kudos
KeithWeber1
Deactivated User
Robert,

Thanks! That was it.
0 Kudos