WmsLayer.withUriAndLayerNames constructor
Creates a WmsLayer with the specified URL and layer names.
To specify a preferred WMS version, set the 'VERSION' parameter in the 'GetCapabilities' URL for the service.
Parameters:
uri
— The URL of a WMS service.layerNames
— A List of the visible WMS layer names.