WmsLayer.withUriAndLayerNames constructor

WmsLayer.withUriAndLayerNames({
  1. required Uri uri,
  2. required List<String> layerNames,
})

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.