hasLegendSupport() ​
hasLegendSupport(
layer): layer is MapContextLayerWms | MapContextLayerWmts
Whether a layer type can carry a legend.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
layer | MapContextLayer | The layer to check. |
Returns ​
layer is MapContextLayerWms | MapContextLayerWmts
true if the layer is a WMS or WMTS layer.