We have an existing Silverlight application that loads a ArcGIS MapService and display it to the user. We want to add the ability to also add a WMS layer on top of the existing displayed map. I am not too familiar about WMS layers and the samples i found on ArcGIS are only loading ArcGIS WMS layers.

We have updated one of our ArcGIS map services and enabled the WMS capability.

How do i add the WMS layer to the map?

Would i access it the same as a ArcGISDynamicMapServiceLayer?

using a url like this? http://OurArcGISServer/arcgis/services/Map1/MapServer/WMSServer

  • Where is the WMS service coming from? Accordingly I could provide you with a small sample. Feb 26 '14 at 5:39
  • Hi Devdatta, generally we want it to be dynamic(if possible). Example, our city releases or allows of its WMS maps for changes in roads etc.
    – Juno
    Feb 27 '14 at 15:44
  • What exactly is your issue? What have you tried so far? where are you stuck? I've never had any problem using WMS services in a Silverlight App. There is even an sample in the API help. Unfortunately I'm on a linux machine right now, so Can't link to it. Feb 27 '14 at 15:49
  • Hi Devdatta, from the samples that i have found. It seems that you have to build your own request link every time you try to zoom in/out a WMS layer. I was wondering if there was a similar way like how we load an ArcGISDynamicServiceLayer but on a WMS layer.
    – Juno
    Feb 27 '14 at 16:03
  • 1
    Have you looked at this forums.arcgis.com/threads/18836-WMS-layer-in-Silverlight-app it shows how you can have a wmslayer Feb 27 '14 at 17:02

You can add a WMS service to the Map using a WMSLayer class.

Please have a look at this sample, which shows that you can display a WMSLayer in your map, with code like this:

<esri:WmsLayer ID="OtherWMSLayer"                      
               Opacity="0.7" />

You should also have a look at this thread on the ArcGIS forums.

  • The last link appears to be broken.
    – PolyGeo
    Nov 26 '19 at 3:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.