Skip to main content

IMarkerLayerToolState

geovisto-map • Readme | API


geovisto-map / IMarkerLayerToolState

Interface: IMarkerLayerToolState\<TProps, TDefaults, TConfig, TDimensionsConfig, TDimensions>

This interface declares functions for using the state of the layer tool.

Author​

Jiri Hynek

Extends​

  • ILayerToolState\<TProps, TDefaults, TConfig, TDimensionsConfig, TDimensions>

Type parameters​

• TProps extends IMarkerLayerToolProps = IMarkerLayerToolProps

• TDefaults extends IMarkerLayerToolDefaults = IMarkerLayerToolDefaults

• TConfig extends IMarkerLayerToolConfig = IMarkerLayerToolConfig

• TDimensionsConfig extends IMarkerLayerToolDimensionsConfig = IMarkerLayerToolDimensionsConfig

• TDimensions extends IMarkerLayerToolDimensions = IMarkerLayerToolDimensions

Methods​

deserialize()​

deserialize(config): void

The metod takes config and deserializes the values.

Parameters​

• config: TConfig

Returns​

void

Inherited from​

ILayerToolState.deserialize

Source​

model/types/object/IMapObjectState.ts:32


deserializeDimensions()​

deserializeDimensions(dimensionsConfig): void

It sets the marker layer dimensions property of tool state.

Parameters​

• dimensionsConfig: TDimensionsConfig

Returns​

void

Inherited from​

ILayerToolState.deserializeDimensions

Source​

model/types/layer/ILayerToolState.ts:25


getBucketData()​

getBucketData(): Map\<string, Map\<string, null | IMapAggregationBucket>>

It returns the bucket data.

Returns​

Map\<string, Map\<string, null | IMapAggregationBucket>>

Source​

tools/layers/marker/model/types/tool/IMarkerLayerToolState.ts:71


getCurrentDataCategories()​

getCurrentDataCategories(): string[]

It returns the current data categories.

Returns​

string[]

Source​

tools/layers/marker/model/types/tool/IMarkerLayerToolState.ts:57


getDimensions()​

getDimensions(): TDimensions

It returns the layer dimensions property of the tool state.

Returns​

TDimensions

Inherited from​

ILayerToolState.getDimensions

Source​

model/types/layer/ILayerToolState.ts:30


getIcon()​

getIcon(): string

It returns the icon property of the tool state.

Returns​

string

Inherited from​

ILayerToolState.getIcon

Source​

model/types/tool/IMapToolState.ts:61


getId()​

getId(): string

It returns the id property of the map object state.

Returns​

string

Inherited from​

ILayerToolState.getId

Source​

model/types/object/IMapObjectState.ts:49


getLabel()​

getLabel(): string

It returns the label property of the tool state.

Returns​

string

Inherited from​

ILayerToolState.getLabel

Source​

model/types/tool/IMapToolState.ts:49


getLayerItems()​

getLayerItems(): undefined | Layer[]

It returns the layer items property of the tool state.

Returns​

undefined | Layer[]

Inherited from​

ILayerToolState.getLayerItems

Source​

model/types/layer/ILayerToolState.ts:54


getLayerName()​

getLayerName(): string

It returns the layer name property of the tool state.

Returns​

string

Inherited from​

ILayerToolState.getLayerName

Source​

model/types/layer/ILayerToolState.ts:42


getMap()​

getMap(): undefined | IMap\<IMapProps, IMapDefaults, IMapState\<IMapProps, IMapDefaults, IMapConfig>, IMapConfig, IMapInitProps\<IMapConfig>>

It returns the map property of the tool state.

Returns​

undefined | IMap\<IMapProps, IMapDefaults, IMapState\<IMapProps, IMapDefaults, IMapConfig>, IMapConfig, IMapInitProps\<IMapConfig>>

Inherited from​

ILayerToolState.getMap

Source​

model/types/tool/IMapToolState.ts:44


getMarkerLayerGroup()​

getMarkerLayerGroup(): any

It returns a Leaflet layer group.

Returns​

any

Source​

tools/layers/marker/model/types/tool/IMarkerLayerToolState.ts:31


getMarkers()​

getMarkers(): IMarker\<IMarkerIcon\<any>>[]

It returns the markers.

Returns​

IMarker\<IMarkerIcon\<any>>[]

Source​

tools/layers/marker/model/types/tool/IMarkerLayerToolState.ts:43


getType()​

getType(): string

It returns the type property of the map object state.

Returns​

string

Inherited from​

ILayerToolState.getType

Source​

model/types/object/IMapObjectState.ts:44


initialize()​

initialize(defaults, props, initProps): void

It resets the state with respect to the initial props.

Parameters​

• defaults: TDefaults

• props: TProps

• initProps: IMapToolInitProps\<TConfig>

Returns​

void

Inherited from​

ILayerToolState.initialize

Source​

model/types/tool/IMapToolState.ts:27


isEnabled()​

isEnabled(): boolean

It returns the enabled property of the tool state.

Returns​

boolean

Inherited from​

ILayerToolState.isEnabled

Source​

model/types/tool/IMapToolState.ts:32


serialize()​

serialize(defaults): TConfig

The method serializes the map object state. Optionally, a serialized value can be let undefined if it equals the default value.

Parameters​

• defaults: undefined | TDefaults

Returns​

TConfig

Inherited from​

ILayerToolState.serialize

Source​

model/types/object/IMapObjectState.ts:39


setBucketData()​

setBucketData(bucketData): void

It sets the bucket data.

Parameters​

• bucketData: Map\<string, Map\<string, null | IMapAggregationBucket>>

Returns​

void

Source​

tools/layers/marker/model/types/tool/IMarkerLayerToolState.ts:78


setCurrentDataCategories()​

setCurrentDataCategories(allCategories): void

It sets the current data categories.

Parameters​

• allCategories: string[]

Returns​

void

Source​

tools/layers/marker/model/types/tool/IMarkerLayerToolState.ts:64


setDimensions()​

setDimensions(dimensions): void

It sets the layer dimensions property of tool state.

Parameters​

• dimensions: TDimensions

Returns​

void

Inherited from​

ILayerToolState.setDimensions

Source​

model/types/layer/ILayerToolState.ts:37


setEnabled()​

setEnabled(enabled): void

It sets the enabled property of tool state.

Parameters​

• enabled: boolean

Returns​

void

Inherited from​

ILayerToolState.setEnabled

Source​

model/types/tool/IMapToolState.ts:39


setIcon()​

setIcon(icon): void

It sets the icon property of the tool state.

Parameters​

• icon: string

Returns​

void

Inherited from​

ILayerToolState.setIcon

Source​

model/types/tool/IMapToolState.ts:68


setId()​

setId(id): void

It sets the id property of the map object state. It can be set only once.

Parameters​

• id: string

Returns​

void

Inherited from​

ILayerToolState.setId

Source​

model/types/object/IMapObjectState.ts:57


setLabel()​

setLabel(label): void

It sets the label property of the tool state.

Parameters​

• label: string

Returns​

void

Inherited from​

ILayerToolState.setLabel

Source​

model/types/tool/IMapToolState.ts:56


setLayerItems()​

setLayerItems(layerItems): void

It sets the layer items property of tool state.

Parameters​

• layerItems: Layer[]

Returns​

void

Inherited from​

ILayerToolState.setLayerItems

Source​

model/types/layer/ILayerToolState.ts:61


setLayerName()​

setLayerName(layerName): void

It sets the layer name property of the tool state.

Parameters​

• layerName: string

Returns​

void

Inherited from​

ILayerToolState.setLayerName

Source​

model/types/layer/ILayerToolState.ts:49


setMarkerLayerGroup()​

setMarkerLayerGroup(layerGroup): void

It sets a Leaflet layer group.

Parameters​

• layerGroup: LayerGroup

Returns​

void

Source​

tools/layers/marker/model/types/tool/IMarkerLayerToolState.ts:38


setMarkers()​

setMarkers(markers): void

It sets the markers.

Parameters​

• markers: IMarker\<IMarkerIcon\<any>>[]

Returns​

void

Source​

tools/layers/marker/model/types/tool/IMarkerLayerToolState.ts:50