How do I add WMS to a map?

Jump to solution
08-04-2017 07:00 AM
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(" ", 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
MVP Esteemed Contributor
Occasional Contributor II

Thanks you for the think, this answers my question!