I’ve been working on implementing the WMSRasterLayer into my project and I’m a bit confused by a few of the details regarding layer names and styles.
First, it seems the only way to find what layers are available to display is to call GetServerLayerNames; however, this returns the name but that is not the commonly referred Title that most users see when loading WMS in other products such as ArcMAP or QGis. Is there a way to find the Title of a layer rather than the name?
Second, I have found that styles are particularly problematic. The GetServerStyleNames function returns all styles names, but there is no way to determine which styles refer to which layers. Not only that, it seems there are multiple styles that can be applied to layers. In the example I am working with, there are 11 layers and 60 styles available. How can I figure out which of the styles are associated with a given layer?
Finally, if I don’t assign any ActiveStyleNames, I still get a display. What is the exact behavior here? Is it loading all available styles for the layer? It seemed to be the case, but I found if I added more than 1 style to the ActvieStyleNames that I get a “styles does not match the number of specified layers” error.