Module components/layer-manager/legend
Type aliases
LegendItemOptions
Legend
Item
Options
: { feature
?: OLFeature; lineHeight
?: number; margin
?: number; onload
?: Function; properties
?: {}; size
?: Size2; style
?: Style | Style[] | ((feat
: ol_render_Feature | OLFeature) => Style | Style[]); typeGeom
?: any }Type declaration
Optional feature?: OLFeature
Optional lineHeight?: number
Optional margin?: number
Optional onload?: Function
Optional properties?: {}
Optional size?: Size2
Optional style?: Style | Style[] | ((feat: ol_render_Feature | OLFeature) => Style | Style[])
Optional typeGeom?: any
Functions
getLegendImage
- getLegendImage(item: LegendItemOptions, canvas?: undefined | HTMLCanvasElement, row?: undefined | number): HTMLCanvasElement
Parameters
canvas: undefined | HTMLCanvasElement = undefined
row: undefined | number = 0
Returns HTMLCanvasElement
0.14