Optional
attributesAdditional attributes for this layer. These can be arbitrary values.
Optional
descriptionThe human-readable description of this layer. Defaults to an empty string.
Optional
fetchWhether to automatically fetch capabilities from the service when needed (default: true
).
Setting this to false
can be useful as a performance optimization when capabilities are not really required by the application.
Note that this will disable some features of the WMS layer: for example, the legend URL will not be available.
Optional
healthOptional property to check the availability of the layer. It is possible to provide either a URL which indicates the state of the service (2xx response meaning "ok") or a HealthCheckFunction performing a custom check and returning the state.
Optional
idThe unique id of this layer. Defaults to a generated id.
Optional
isWhether this layer is a base layer or not. Only one base layer can be active at a time.
Defaults to false
.
Optional
sourceAdditional source options for the layer's WMS source.
NOTE: These options are intended for advanced configuration: the WMS Layer manages some of the OpenLayers source options itself.
Optional
sublayersConfigures the layer's sublayers.
The human-readable title of this layer.
URL of the WMS service.
Optional
visibleWhether this layer should initially be visible.
Defaults to true
.
Configuration options to construct a WMS layer.