If you switch to using a featurelayer, remember to change the URL to use a layer within the service. For instance add /0 to the URL to select the feature layer to display.
Dominque, it seems to be the FeatureLayer that's not showing up -- it's working just fine when I set it as a ArcGISDynamicmapServiceLayer in the XAML, but when I try it as a "FeatureLayer" with the selection mode shown in the sample I don't even see the layer rendering on load. Perhaps it's the way I have the service configured? It's an MSD source obviously. Any idea what I could be doing wrong?
From an ArcGISDynamicmapServiceLayer, you can use either 'Identify' which returns the features of the map service near a point (example : http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/start.htm#Identify ) or a Query task which returns the features of a layer (example : http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/start.htm#SpatialQuery).If you are using the version 2.0 of the API, you can also consider using a featureLayer in SelectionOnly mode (Example : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection).Hope this help./Dominique
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.