GeoDownloaderToolState
geovisto-map / GeoDownloaderToolState
Class: GeoDownloaderToolState
State class for GeoDownloaderTool.
Authorβ
VojtΔch MalΓ½
Extendsβ
Implementsβ
Constructorsβ
new GeoDownloaderToolState()β
new GeoDownloaderToolState(
tool):GeoDownloaderToolState
Parametersβ
β’ tool: IGeoDownloaderTool
Returnsβ
Overridesβ
Sourceβ
tools/geo-downloader/model/internal/tool/GeoDownloaderToolState.ts:17
Methodsβ
deserialize()β
deserialize(
config):void
The metod takes config and deserializes the values.
Parametersβ
β’ config: IMapToolConfig
Returnsβ
void
Implementation ofβ
IGeoDownloaderToolState.deserialize
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:64
getIcon()β
getIcon():
string
It returns the icon property of the tool state.
Returnsβ
string
Implementation ofβ
IGeoDownloaderToolState.getIcon
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β
IGeoDownloaderToolState.getId
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β
IGeoDownloaderToolState.getLabel
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:104
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β
IGeoDownloaderToolState.getMap
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
getType()β
getType():
string
It returns the type property of the tool state.
Returnsβ
string
Implementation ofβ
IGeoDownloaderToolState.getType
Inherited fromβ
Sourceβ
model/internal/object/MapObjectState.ts:80
initialize()β
initialize(
defaults,props,initProps):void
It resets the state to the initial props.
Parametersβ
β’ defaults: IGeoDownloaderToolDefaults
β’ props: IMapToolProps
β’ initProps: IMapToolInitProps\<IMapToolProps>
Returnsβ
void
Implementation ofβ
IGeoDownloaderToolState.initialize
Overridesβ
Sourceβ
tools/geo-downloader/model/internal/tool/GeoDownloaderToolState.ts:21
isEnabled()β
isEnabled():
boolean
It returns the enabled property of the tool state.
Returnsβ
boolean
Implementation ofβ
IGeoDownloaderToolState.isEnabled
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:88
serialize()β
serialize(
defaults):IMapToolConfig
The method serializes the tool state. Optionally, a serialized value can be let undefined if it equals the default value.
Parametersβ
β’ defaults: undefined | IMapToolDefaults
Returnsβ
Implementation ofβ
IGeoDownloaderToolState.serialize
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:76
setEnabled()β
setEnabled(
enabled):void
It sets the enabled property of tool state.
Parametersβ
β’ enabled: boolean
Returnsβ
void
Implementation ofβ
IGeoDownloaderToolState.setEnabled
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:97
setIcon()β
setIcon(
icon):void
It sets the icon property of the tool state.
Parametersβ
β’ icon: string
Returnsβ
void
Implementation ofβ
IGeoDownloaderToolState.setIcon
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β
IGeoDownloaderToolState.setId
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β
IGeoDownloaderToolState.setLabel
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:113
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