Select to view content in your preferred language

FeatureLayer not show all properties

2029
3
06-11-2012 02:51 AM
bayramüçüncü
Deactivated User
I have a published service on arcgis. I am adding the service onmap as ArcgisDynamicLayer and I can see all of the parts (colors, arrows, dashed lines created on mxd). For example In arcgis I painted lines and dashed colors and publish the service.
When I add featurelayer and implement it a line that dashed and painted, the colors  are not appeared.
If I use arcgisdynamiclayer, they are appearing.
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
An ArcGISDynamicMapServiceLayer is rendered at the server side (we get images from server), a feature layer is rendered at the client side (we get symbol definitions from server and the symbols are created at client side).
That might explain some differences between the 2 kinds of layers.

That being said, most generally, the rendering should be the same or at least close (though there are some limitations).

First thing to check is your server version. Feature layer symbology is provided by the REST API from Server 10.0 onward.
Which version are you using?

Else can you share a public feature layer url allowing to reproduce the issue?
0 Kudos
bayramüçüncü
Deactivated User
An ArcGISDynamicMapServiceLayer is rendered at the server side (we get images from server), a feature layer is rendered at the client side (we get symbol definitions from server and the symbols are created at client side).
That might explain some differences between the 2 kinds of layers.

That being said, most generally, the rendering should be the same or at least close (though there are some limitations).

First thing to check is your server version. Feature layer symbology is provided by the REST API from Server 10.0 onward.
Which version are you using?

Else can you share a public feature layer url allowing to reproduce the issue?


Yes the arcgis version is 10.
and I am using this url to use arcgisdynamiclayer. The colors are appeared here.
but When I use this url to use featurelayer, the colors are not appearing borders of the polygons.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
I tried your 2 services.

I guess you are talking about the border color for your 'Açik' values that is not the same in both services.


[ATTACH=CONFIG]15127[/ATTACH]


I am not sure how you created that symbology in ArcMap but from the REST API it's a polygon with a black border (see below).

Unique Value Infos: 
  • Value: A�?IK
  • Label: A�?IK Description: Symbol:
    • Simple Fill Symbol:
    • Style: esriSFSSolid, Color: [Undefined] Outline:
      • Simple Line Symbol:
      • Style: esriSLSSolid, Color: [0, 0, 0, 255], Width: 2    <--- Black border


So the SL API looks working well.

I think you run into one of the limitations I was talking about.
The supported symbols are defined here : http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/symbol.html and a border with multiple colors doesn't seem to be supported.
0 Kudos