Select to view content in your preferred language

Silverlight Layer Types and How to Preserve Symbology & Query Capability?

1311
1
04-02-2010 10:56 AM
EricMahaffey
Deactivated User
What is the best way to get the symbology from the source AGS service, and still allow layer querying when connecting using the Silverlight API?  Dynamic layers seem to keep the source symbology, but do not allow identify/query.  FeatureLayers drop the symbology, but allow identify/querying.
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
It's the other way around: Dynamic services are the ones you can run the Identify and QueryTasks against.
See:
http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/start.htm#QueryWithoutMap
http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/start.htm#SpatialQuery
http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/start.htm#Identify

FeatureLayer does not have anything like this. The only thing you get by using FL is direct mouse interaction and having access to all the features in memory on the client. This also means they have to be rendered at the client, and you are in charge of specifying symbology.
ArcGIS 10.x will support exposing a subset of the MXD symbology, and FeatureLayer will automatically use that if you don't override the default symbology.
0 Kudos