How do I add WMS to a map?

923
2
Jump to solution
08-04-2017 07:00 AM
StefanOffermann
Occasional Contributor II

I am at my very first steps using the Pro SDK. I have found some samples on how to add layers to the active map by using the LayerFactory. It was pretty simple to add a map service from the gis server.

Now I want to add a WMS to my map. My naive approach was to replace the map server url with the wms url:

LayerFactory.Instance.CreateLayer("http://sg.geodatenzentrum.de/wms_webatlasde.light ", MapView.Active.Map);

But this will throw an exception. What is the correct way to add a wms to my map?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
2 Replies
JayantaPoddar
MVP Esteemed Contributor
StefanOffermann
Occasional Contributor II

Thanks you for the think, this answers my question!