Select to view content in your preferred language

Support for FeatureService in ArcGIS API

976
3
11-27-2013 08:38 PM
Labels (1)
HumzaAkhtar
Deactivated User
How to added a service whose URL ends with FeatureServer (FeatureService) to a map using API for WPF? Please note that I am not talking about FeatureLayers but FeatureService. I know that Feature Layers can be added using FeatureLayer class, but I donot see any class for FeatureService like we have for TiledMapServiceLayers.
0 Kudos
3 Replies
MichaelBranscomb
Esri Frequent Contributor
Hi,

For visualizing data, you don't add a feature services directly - you add FeatureLayers, which reference a specific layer within the feature service.

Cheers

Mike
0 Kudos
HumzaAkhtar
Deactivated User
Yes, you are correct and thanks a lot for replying. But consider this scenario:

I have a feature service which has 3 feature layers in it, a point feature layer, a polyline feature layer and a polygon feature layer. If I am making a user application on WPF, I donot think that it will be a good user experience for the user when he sees three sub feature layers instead of one in his/her application and then they have to add all these feature layers one by one to see the whole feature service.

Thanks
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

Because you are developing the application, it's really up to you how you expose feature services and featurelayers to users. You could for example create a server browser dialog from which the user picks a feature service end point. Programmatically you could then add the three individual feature layers exposed in the UI as a single layer in a table of contents or legend control. Or they could be nested within a GroupLayer.

Cheers

Mike
0 Kudos