Skip to content

hasLegendSupport() ​

hasLegendSupport(layer): layer is MapContextLayerWms | MapContextLayerWmts

Whether a layer type can carry a legend.

Parameters ​

ParameterTypeDescription
layerMapContextLayerThe layer to check.

Returns ​

layer is MapContextLayerWms | MapContextLayerWmts

true if the layer is a WMS or WMTS layer.