Skip to main content

MapLayerToolLegend

geovisto-mapReadme | API


geovisto-map / MapLayerToolLegend

Class: abstract MapLayerToolLegend\<T>

The interface declares functions for management of legends.

Author

Tomas Koscielniak

Extends

Type parameters

T extends ILayerTool

Constructors

new MapLayerToolLegend()

new MapLayerToolLegend\<T>(layerTool): MapLayerToolLegend\<T>

Parameters

layerTool: T

Returns

MapLayerToolLegend\<T>

Overrides

MapObjectLegend.constructor

Source

model/internal/legend/MapLayerToolLegend.ts:12

Methods

getContent()

abstract getContent(tool): undefined | HTMLElement

It returns a HTML div element conatining the legends.

Parameters

tool: IMapTool\<IMapToolProps, IMapToolDefaults, IMapToolState\<IMapToolProps, IMapToolDefaults, IMapToolConfig, IMapToolInitProps\<IMapToolConfig>>, IMapToolConfig, IMapToolInitProps\<IMapToolConfig>, IMapToolAPI>

Returns

undefined | HTMLElement

Overrides

MapObjectLegend.getContent

Source

model/internal/legend/MapLayerToolLegend.ts:19


getMapObject()

protected getMapObject(): T

Returns

T

Inherited from

MapObjectLegend.getMapObject

Source

model/internal/legend/MapObjectLegend.ts:17