Select to view content in your preferred language

Arcgis feature service layers

2176
4
08-27-2013 10:22 PM
Labels (1)
HumzaAkhtar
Deactivated User
Hi all,

Does ArcGIS API for WPF allows addition of FeatureServiceLayers on the map? or does it still only supports Feature Layers


Regards
Humz
0 Kudos
4 Replies
AnttiKajanus1
Deactivated User
Hi,

Could you define your question in more detail, I think didn't understand it.
0 Kudos
HumzaAkhtar
Deactivated User
Hi,

Could you define your question in more detail, I think didn't understand it.



Hi,

Thanks a lot for your reply.  I have an ARcGIS 10.11 server in which I have MapService layers (Url ending with MapSErver) and FeatureService  layers (url ending with FeatureServer). I wanted to ask that whether ArcGIS api for wpf allows addition of layers whose URl end with FeatureServer directly on to the map? The reason why I ask is that I cannot find any function for initializing feature "services" in the API however there are functions for TiledMap services and DynamicMapServices listed in the API reference.

Thanks
0 Kudos
AnttiKajanus1
Deactivated User
So you have an FeatureService and you want to add that to map?

You can add those as a FeatureLayers to map like this:
 <esri:Map x:Name="MyMap" Extent="-15000000,2000000,-7000000,8000000" WrapAround="True" Background="#FFE3E3E3">
            <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"
                    Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
            <esri:FeatureLayer ID="MyFeatureLayer" 
Url="http://services.arcgis.com/1be8I8dpkSL373og/ArcGIS/rest/services/EmissionsInFinland2011_fromExcel/FeatureServer/0"/>
        </esri:Map>
0 Kudos
HumzaAkhtar
Deactivated User
Hi,

In the code example that you gave me, you added a Feature Layer which was in that FeatureService, not the whole FeatureService itself. If a FeatureService has multiple FeatureLayers then we will have to add them one by one using XAML tag <esri:FeatureLayer


Thanks
0 Kudos