Skip to main content

DotLayerToolState

geovisto-mapReadme | API


geovisto-map / DotLayerToolState

Class: DotLayerToolState

This class provide functions for using the state of the layer tool.

Author

Vladimir Korencik

Extends

Implements

Constructors

new DotLayerToolState()

new DotLayerToolState(tool): DotLayerToolState

Parameters

tool: IDotLayerTool\<IDotLayerToolProps, IDotLayerToolDefaults, IDotLayerToolState\<IDotLayerToolProps, IDotLayerToolDefaults, IDotLayerToolConfig, object, object>, IDotLayerToolConfig, IMapToolInitProps\<IDotLayerToolConfig>>

Returns

DotLayerToolState

Overrides

LayerToolState.constructor

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:38

Properties

categoryColorRules

private categoryColorRules: ICategoryColorRules[]

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:33


latlngs

private latlngs: any[]

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:34


layer?

private optional layer: any

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:31


manager

private manager: IMapFilterManager

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:35


markers

private markers: CircleMarker[]

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:32

Methods

deserialize()

deserialize(config): void

The metod takes config and deserializes the values.

Parameters

config: IDotLayerToolConfig

Returns

void

Implementation of

IDotLayerToolState.deserialize

Overrides

LayerToolState.deserialize

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:91


deserializeDimensions()

deserializeDimensions(dimensionsConfig): void

It sets the marker layer dimensions property of tool state.

Parameters

dimensionsConfig

dimensionsConfig.category?: string

dimensionsConfig.categoryColor?: string

dimensionsConfig.categoryColorOp?: string

dimensionsConfig.categoryColorValue?: string

dimensionsConfig.color?: string

dimensionsConfig.latitude?: string

dimensionsConfig.longitude?: string

Returns

void

Implementation of

IDotLayerToolState.deserializeDimensions

Overrides

LayerToolState.deserializeDimensions

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:118


getCategoryColorRules()

getCategoryColorRules(): ICategoryColorRules[]

Returns

ICategoryColorRules[]

Implementation of

IDotLayerToolState.getCategoryColorRules

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:226


getDimensions()

getDimensions(): object

It returns the layer dimensions property of the tool state.

Returns

object

category

category: IMapDomainDimension\<IMapDataDomain>

categoryColor

categoryColor: IMapTypeDimension\<string, ITypeManager\<string>>

categoryColorOp

categoryColorOp: IMapDomainDimension\<IMapFilterOperation>

categoryColorValue

categoryColorValue: IMapTypeDimension\<string, ITypeManager\<string>>

color

color: IMapTypeDimension\<string, ITypeManager\<string>>

latitude

latitude: IMapDomainDimension\<IMapDataDomain>

longitude

longitude: IMapDomainDimension\<IMapDataDomain>

Implementation of

IDotLayerToolState.getDimensions

Overrides

LayerToolState.getDimensions

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:198


getFiltersManager()

getFiltersManager(): IMapFilterManager

Returns

IMapFilterManager

Implementation of

IDotLayerToolState.getFiltersManager

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:190


getIcon()

getIcon(): string

It returns the icon property of the tool state.

Returns

string

Implementation of

IDotLayerToolState.getIcon

Inherited from

LayerToolState.getIcon

Source

model/internal/tool/MapToolState.ts:120


getId()

getId(): string

It returns the id property of the tool state.

Returns

string

Implementation of

IDotLayerToolState.getId

Inherited from

LayerToolState.getId

Source

model/internal/object/MapObjectState.ts:87


getLabel()

getLabel(): string

It returns the label property of the tool state.

Returns

string

Implementation of

IDotLayerToolState.getLabel

Inherited from

LayerToolState.getLabel

Source

model/internal/tool/MapToolState.ts:104


getLayer()

getLayer(): any

Returns

any

Implementation of

IDotLayerToolState.getLayer

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:206


getLayerItems()

getLayerItems(): undefined | Layer[]

It returns the layer items property of the tool state.

Returns

undefined | Layer[]

Implementation of

IDotLayerToolState.getLayerItems

Inherited from

LayerToolState.getLayerItems

Source

model/internal/layer/LayerToolState.ts:104


getLayerName()

getLayerName(): string

It returns the layer name property of the tool state.

Returns

string

Implementation of

IDotLayerToolState.getLayerName

Inherited from

LayerToolState.getLayerName

Source

model/internal/layer/LayerToolState.ts:88


getMap()

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

It returns the map property of the tool state.

Returns

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

Implementation of

IDotLayerToolState.getMap

Inherited from

LayerToolState.getMap

Source

model/internal/tool/MapToolState.ts:136


getMapObject()

protected getMapObject(): IMapObject\<IMapObjectProps, IMapObjectDefaults\<IMapObjectProps, IMapObjectConfig>, IMapObjectState\<IMapObjectProps, IMapObjectDefaults\<IMapObjectProps, IMapObjectConfig>, IMapObjectConfig, IMapObjectInitProps\<IMapObjectConfig>>, IMapObjectConfig, IMapObjectInitProps\<IMapObjectConfig>>

It makes the map object visible to extended classes.

Returns

IMapObject\<IMapObjectProps, IMapObjectDefaults\<IMapObjectProps, IMapObjectConfig>, IMapObjectState\<IMapObjectProps, IMapObjectDefaults\<IMapObjectProps, IMapObjectConfig>, IMapObjectConfig, IMapObjectInitProps\<IMapObjectConfig>>, IMapObjectConfig, IMapObjectInitProps\<IMapObjectConfig>>

Inherited from

LayerToolState.getMapObject

Source

model/internal/object/MapObjectState.ts:39


getMarkers()

getMarkers(): CircleMarker[]

Returns

CircleMarker[]

Implementation of

IDotLayerToolState.getMarkers

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:214


getType()

getType(): string

It returns the type property of the tool state.

Returns

string

Implementation of

IDotLayerToolState.getType

Inherited from

LayerToolState.getType

Source

model/internal/object/MapObjectState.ts:80


getWorkData()

getWorkData(): any[]

Returns

any[]

Implementation of

IDotLayerToolState.getWorkData

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:234


initialize()

initialize(defaults, props, initProps): void

It resets the state with respect to the initial props.

Parameters

defaults: IDotLayerToolDefaults

props: IDotLayerToolProps

initProps: IMapToolInitProps\<IDotLayerToolConfig>

Returns

void

Implementation of

IDotLayerToolState.initialize

Overrides

LayerToolState.initialize

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:46


isEnabled()

isEnabled(): boolean

It returns the enabled property of the tool state.

Returns

boolean

Implementation of

IDotLayerToolState.isEnabled

Inherited from

LayerToolState.isEnabled

Source

model/internal/tool/MapToolState.ts:88


serialize()

serialize(defaults): IDotLayerToolConfig

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

Parameters

defaults: undefined | IDotLayerToolDefaults

Returns

IDotLayerToolConfig

Implementation of

IDotLayerToolState.serialize

Overrides

LayerToolState.serialize

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:159


setCategoryColorRules()

setCategoryColorRules(rules): void

Parameters

rules: ICategoryColorRules[]

Returns

void

Implementation of

IDotLayerToolState.setCategoryColorRules

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:222


setDimensions()

setDimensions(dimensions): void

It sets the layer dimensions property of tool state.

Parameters

dimensions

dimensions.category: IMapDomainDimension\<IMapDataDomain>

dimensions.categoryColor: IMapTypeDimension\<string, ITypeManager\<string>>

dimensions.categoryColorOp: IMapDomainDimension\<IMapFilterOperation>

dimensions.categoryColorValue: IMapTypeDimension\<string, ITypeManager\<string>>

dimensions.color: IMapTypeDimension\<string, ITypeManager\<string>>

dimensions.latitude: IMapDomainDimension\<IMapDataDomain>

dimensions.longitude: IMapDomainDimension\<IMapDataDomain>

Returns

void

Implementation of

IDotLayerToolState.setDimensions

Overrides

LayerToolState.setDimensions

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:202


setEnabled()

setEnabled(enabled): void

It sets the enabled property of tool state.

Parameters

enabled: boolean

Returns

void

Implementation of

IDotLayerToolState.setEnabled

Inherited from

LayerToolState.setEnabled

Source

model/internal/tool/MapToolState.ts:97


setFiltersManager()

setFiltersManager(manager): void

Parameters

manager: IMapFilterManager

Returns

void

Implementation of

IDotLayerToolState.setFiltersManager

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:194


setIcon()

setIcon(icon): void

It sets the icon property of the tool state.

Parameters

icon: string

Returns

void

Implementation of

IDotLayerToolState.setIcon

Inherited from

LayerToolState.setIcon

Source

model/internal/tool/MapToolState.ts:129


setId()

setId(id): void

It sets the id property of the tool state.

Parameters

id: string

Returns

void

Implementation of

IDotLayerToolState.setId

Inherited from

LayerToolState.setId

Source

model/internal/object/MapObjectState.ts:96


setLabel()

setLabel(label): void

It sets the label property of the tool state.

Parameters

label: string

Returns

void

Implementation of

IDotLayerToolState.setLabel

Inherited from

LayerToolState.setLabel

Source

model/internal/tool/MapToolState.ts:113


setLayer()

setLayer(layer): void

Parameters

layer: LayerGroup

Returns

void

Implementation of

IDotLayerToolState.setLayer

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:210


setLayerItems()

setLayerItems(layerItems): void

It sets the layer items property of tool state.

Parameters

layerItems: Layer[]

Returns

void

Implementation of

IDotLayerToolState.setLayerItems

Inherited from

LayerToolState.setLayerItems

Source

model/internal/layer/LayerToolState.ts:113


setLayerName()

setLayerName(layerName): void

It sets the layer name property of the tool state.

Parameters

layerName: string

Returns

void

Implementation of

IDotLayerToolState.setLayerName

Inherited from

LayerToolState.setLayerName

Source

model/internal/layer/LayerToolState.ts:97


setMap()

protected setMap(map): void

It sets the map property of the tool state.

Parameters

map: IMap\<IMapProps, IMapDefaults, IMapState\<IMapProps, IMapDefaults, IMapConfig>, IMapConfig, IMapInitProps\<IMapConfig>>

Returns

void

Inherited from

LayerToolState.setMap

Source

model/internal/tool/MapToolState.ts:145


setMarkers()

setMarkers(markers): void

Parameters

markers: CircleMarker[]

Returns

void

Implementation of

IDotLayerToolState.setMarkers

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:218


setWorkData()

setWorkData(latlngs): void

Parameters

latlngs: any[]

Returns

void

Implementation of

IDotLayerToolState.setWorkData

Source

tools/layers/dot/model/internal/tool/DotLayerToolState.ts:230