Load a customize WMS in arcgis C#

11-26-2015 12:29 AM
New Contributor III

I want to load a customize WMS server (like with arcgis library (esri.arcgis.client, esri.arcgis.client.toolkit, esri.arcgis.client.toolkit.datasource, esri.arcgis.client.toolkit, esri.arcgis.client.toolkit.datasource.resource) in WPF. please, guide me. This code can run the arcgis map example (http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer)

 <esri:Map x:Name="MyMap"  WrapAround="True"> 
<esri:ArcGISTiledMapServiceLayer Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />

but unfortunately can not run the example (

Tags (4)
0 Kudos
1 Reply
Esri Frequent Contributor

It doesn't seem that your underlying service is a WMS service.

Looks like it's a tiled layer with tiles exposed as png image e.g.:

To display it through the ArcGIS Runtime SDK for WPF you can use the WebTiledLayer provided by the toolkit.

Though if you are creating a new application, I would recommend you to use the new ArcGIS .Net SDK, a WebTiledlayer is also provided by this SDK (sample)

0 Kudos