DotLayerToolState
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
Overrides
Source
tools/layers/dot/model/internal/tool/DotLayerToolState.ts:38
Properties
categoryColorRules
privatecategoryColorRules:ICategoryColorRules[]
Source
tools/layers/dot/model/internal/tool/DotLayerToolState.ts:33
latlngs
privatelatlngs:any[]
Source
tools/layers/dot/model/internal/tool/DotLayerToolState.ts:34
layer?
privateoptionallayer:any
Source
tools/layers/dot/model/internal/tool/DotLayerToolState.ts:31
manager
privatemanager:IMapFilterManager
Source
tools/layers/dot/model/internal/tool/DotLayerToolState.ts:35
markers
privatemarkers: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
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
Source
tools/layers/dot/model/internal/tool/DotLayerToolState.ts:198
getFiltersManager()
getFiltersManager():
IMapFilterManager
Returns
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
Inherited from
Source
model/internal/tool/MapToolState.ts:120
getId()
getId():
string
It returns the id property of the tool state.
Returns
string
Implementation of
Inherited from
Source
model/internal/object/MapObjectState.ts:87
getLabel()
getLabel():
string
It returns the label property of the tool state.
Returns
string
Implementation of
Inherited from
Source
model/internal/tool/MapToolState.ts:104
getLayer()
getLayer():
any
Returns
any
Implementation of
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
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
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
Inherited from
Source
model/internal/tool/MapToolState.ts:136
getMapObject()
protectedgetMapObject():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
Source
model/internal/object/MapObjectState.ts:39
getMarkers()
getMarkers():
CircleMarker[]
Returns
CircleMarker[]
Implementation of
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
Inherited from
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
Overrides
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
Inherited from
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
Implementation of
Overrides
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
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
Inherited from
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
Inherited from
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
Inherited from
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
Inherited from
Source
model/internal/tool/MapToolState.ts:113
setLayer()
setLayer(
layer):void
Parameters
• layer: LayerGroup
Returns
void
Implementation of
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
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
Source
model/internal/layer/LayerToolState.ts:97
setMap()
protectedsetMap(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
Source
model/internal/tool/MapToolState.ts:145
setMarkers()
setMarkers(
markers):void
Parameters
• markers: CircleMarker[]
Returns
void
Implementation of
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