Select to view content in your preferred language

Symbols are not rendered

1215
8
01-02-2011 06:02 AM
junespina
Emerging Contributor
Hello,

we've just migrated from arcgis server 9.3.1 to arcgis server 10 with 9.3.1 sde. we have an existing web application made from silverlight. after the migration all the symbology and functionalities are gone. we've tried recreating the services but the symbols, specially the points, does not render the symbols that we want. we've double checked the codes but we can't seem to get them to work.

please help us. thanks in advance and happy new year

jun
0 Kudos
8 Replies
DanielWalton
Frequent Contributor
I'm not certain, but I think you should upgrade your SDE instance to v. 10 as well and migrate your data over. A pain, I know. You should probably post this problem in the server forum, as this is almost certainly an issue between AGS and SDE.
0 Kudos
DanielWalton
Frequent Contributor
This is probably a server question, not a Silverlight one. But when you migrated, did you copy your MXD files over and just update the data source? Perhaps your old MXD referenced a .style file that didn't make it onto the new server.
0 Kudos
junespina
Emerging Contributor
Thanks for the reply dan.

if its a server problem what will i be looking for? when we use services from esri, we can change its symbols. but when we use our own services we can't change them. even the simple red circle cannot be rendered.

i was suspecting a missing component to use silverlight 4 with arcgis server 10.

jun
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Are you working with an ArcGISDynamicMapServiceLayer or with Feature Layers?

If it's an ArcGISDynamicMapServiceLayer, you can check the map server URL (e.g. http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_MedianIncome_US_2D/MapServer) and test the 'Export Map' operation.

If it's a FeatureLayer, you can also check the FeatureLayer rest end point (e.g. http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_MedianIncome_US_2D/MapServer...).

This might give a clue about the issue.
0 Kudos
FrankHutchinson
Deactivated User
Having same problem. Can't control rendering in feature layer from Server 10. Always displays symbols from map, but works fine with ESRI 9.3.1 sample server. Comparing Rest endpoint was confusing since 9.3.1 doesn't show drawing information.
0 Kudos
JenniferNery
Esri Regular Contributor
Are you saying FeatureLayers from 9.3.1 service renders fine, while FeatureLayers from 10 service does not? What version of the API are you using? You need v2.0 or higher when working with Server 10.

If the FeatureService is set up correctly, you will find that there is "DrawingInfo" section when you visit the URL from your web browser. Can you share that with us?

For example in this FeatureService: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer...

It has the following DrawingInfo:
Drawing Info:

Renderer:

Unique Value Renderer:

Field 1: ftype
Field 2:
Field 3:
Field Delimiter: ,
Default Symbol:

Simple Marker Symbol:
Style: esriSMSCircle, Color: [138, 126, 0, 255], Size: 8, Angle: 0, XOffset: 0, YOffset: 0
Outline
Color: [0, 0, 0, 255], Width: 1


Also, be sure to check that the service contains features. When you query the layer from the web browser where "1=1", it return some results.
0 Kudos
FrankHutchinson
Deactivated User
I am using the Silverlight 2.0 API

My data draws, I just can't seem to override the symbol published from my map service with a custom symbol.

If I point the feature layer to my 10.0 service it draws the symbol published in the map - my custom FeatureSymbol does not override the original map symbol

<esri:FeatureLayer ID="ARRA_Only" Url="http://10.60.50.119/arcgis/rest/services/SCC/ARRA_Only/MapServer/0" FeatureSymbol="{StaticResource ARRA_Symbol}" Where="1=1" />

If I point the feature layer to this ESRI 9.3.1 service it draws with my Static Resource Custom Symbol

<esri:FeatureLayer ID="ARRA_Only" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/Map..." Where="POP1990 > 1000000" FeatureSymbol="{StaticResource ARRA_Symbol}"/>
0 Kudos
FrankHutchinson
Deactivated User
I found the answer to my problem here:

http://forums.arcgis.com/threads/10328-Use-of-FeatureSymbol-on-FeatureLayer?highlight=default+render...

You can't override the renderer from the published map without setting the renderer to null after the layer is initialized.

XAML Change:

<esri:FeatureLayer ID="ARRA_Only" Url="http://10.60.50.119/arcgis/rest/services/SCC/ARRA_SQL_Server_Spatial/MapServer/0" FeatureSymbol="{StaticResource ARRA_Symbol}" Visible="False" Opacity="0.4" Initialized="ARRA_Layer_Initialized"/>


Code Behind:

        private void ARRA_Layer_Initialized(object sender, EventArgs e)
        {
            FeatureLayer f = (FeatureLayer)Map.Layers["ARRA_Only"];
            f.Renderer = null;
        }

I never found any way to remove the renderer from the service, but this worked.
0 Kudos