Load a customize WMS in arcgis C#

3401
1
11-26-2015 12:29 AM
BaharAzartoos
New Contributor III

I want to load a customize WMS server (like http://185.8.172.26/) 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" />
</esri:Map>

but unfortunately can not run the example ( http://185.8.172.26/)

Tags (4)
0 Kudos
1 Reply
DominiqueBroux
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.: http://185.8.172.26/statics/Map/13/5255/3221.png

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