Skip to main content

InfoTool

geovisto-map • Readme | API


geovisto-map / InfoTool

Class: InfoTool

This class implements Info Tool

Author​

Jiri Hynek IMap,

Extends​

Implements​

Constructors​

new InfoTool()​

new InfoTool(props?): InfoTool

It creates a new tool with respect to the props.

Parameters​

• props?: IInfoToolProps

Returns​

InfoTool

Overrides​

MapTool.constructor

Source​

tools/info/model/internal/tool/InfoTool.ts:36

Properties​

mapForm​

private mapForm: IMapForm

Source​

tools/info/model/internal/tool/InfoTool.ts:29

Methods​

copy()​

copy(): IInfoTool\<IInfoToolProps, IInfoToolDefaults, IInfoToolState\<IInfoToolProps, IInfoToolDefaults, IInfoToolConfig>, IInfoToolConfig, IMapToolInitProps\<IInfoToolConfig>>

It creates a copy of the uninitialized tool.

Returns​

IInfoTool\<IInfoToolProps, IInfoToolDefaults, IInfoToolState\<IInfoToolProps, IInfoToolDefaults, IInfoToolConfig>, IInfoToolConfig, IMapToolInitProps\<IInfoToolConfig>>

Implementation of​

IInfoTool.copy

Overrides​

MapTool.copy

Source​

tools/info/model/internal/tool/InfoTool.ts:43


create()​

create(): this

It creates new filter tool.

Returns​

this

Implementation of​

IInfoTool.create

Overrides​

MapTool.create

Source​

tools/info/model/internal/tool/InfoTool.ts:94


createDefaults()​

createDefaults(): IInfoToolDefaults

It creates new defaults of the tool.

Returns​

IInfoToolDefaults

Overrides​

MapTool.createDefaults

Source​

tools/info/model/internal/tool/InfoTool.ts:64


createMapForm()​

protected createMapForm(): IMapForm

It creates new map form.

Returns​

IMapForm

Source​

tools/info/model/internal/tool/InfoTool.ts:112


createState()​

createState(): IInfoToolState\<IInfoToolProps, IInfoToolDefaults, IInfoToolConfig>

It returns default tool state.

Returns​

IInfoToolState\<IInfoToolProps, IInfoToolDefaults, IInfoToolConfig>

Overrides​

MapTool.createState

Source​

tools/info/model/internal/tool/InfoTool.ts:78


getAPIGetter()​

getAPIGetter(): undefined | IMapToolAPIGetter

It returns the tool API

Returns​

undefined | IMapToolAPIGetter

Implementation of​

IInfoTool.getAPIGetter

Inherited from​

MapTool.getAPIGetter

Source​

model/internal/tool/MapTool.ts:74


getDefaults()​

getDefaults(): IInfoToolDefaults

It returns default values of the filters tool.

Returns​

IInfoToolDefaults

Implementation of​

IInfoTool.getDefaults

Overrides​

MapTool.getDefaults

Source​

tools/info/model/internal/tool/InfoTool.ts:57


getId()​

getId(): string

Help function which returns the id of the object.

Returns​

string

Implementation of​

IInfoTool.getId

Inherited from​

MapTool.getId

Source​

model/internal/object/MapObject.ts:93


getInfo()​

getInfo(): void

It creates a new map form.

Returns​

void

Source​

tools/info/model/internal/tool/InfoTool.ts:120


getMap()​

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

Help function returns map which uses this tool.

Do not override this function. Use the state class instead.

Returns​

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

Implementation of​

IInfoTool.getMap

Inherited from​

MapTool.getMap

Source​

model/internal/tool/MapTool.ts:112


getMapForm()​

getMapForm(): IMapForm

It returns a map form.

Returns​

IMapForm

Implementation of​

IMapFormControl.getMapForm

Source​

tools/info/model/internal/tool/InfoTool.ts:102


getProps()​

getProps(): IInfoToolProps

It returns the props given by the programmer.

Returns​

IInfoToolProps

Implementation of​

IInfoTool.getProps

Overrides​

MapTool.getProps

Source​

tools/info/model/internal/tool/InfoTool.ts:50


getState()​

getState(): IInfoToolState\<IInfoToolProps, IInfoToolDefaults, IInfoToolConfig>

It returns the filters tool state.

Returns​

IInfoToolState\<IInfoToolProps, IInfoToolDefaults, IInfoToolConfig>

Implementation of​

IInfoTool.getState

Overrides​

MapTool.getState

Source​

tools/info/model/internal/tool/InfoTool.ts:71


getType()​

getType(): string

Help function which returns the type of the object.

Returns​

string

Implementation of​

IInfoTool.getType

Inherited from​

MapTool.getType

Source​

model/internal/object/MapObject.ts:86


handleEvent()​

handleEvent(event): void

This function is called when a custom event is invoked.

Override this function, if needed.

Parameters​

• event: IMapEvent\<IMapObject\<IMapObjectProps, IMapObjectDefaults\<IMapObjectProps, IMapObjectConfig>, IMapObjectState\<IMapObjectProps, IMapObjectDefaults\<IMapObjectProps, IMapObjectConfig>, IMapObjectConfig, IMapObjectInitProps\<IMapObjectConfig>>, IMapObjectConfig, IMapObjectInitProps\<IMapObjectConfig>>>

Returns​

void

Inherited from​

MapTool.handleEvent

Source​

model/internal/tool/MapTool.ts:171


initialize()​

initialize(initProps): this

Overrides the super method.

Parameters​

• initProps: IMapToolInitProps\<IInfoToolConfig>

Returns​

this

Implementation of​

IInfoTool.initialize

Overrides​

MapTool.initialize

Source​

tools/info/model/internal/tool/InfoTool.ts:87


isEnabled()​

isEnabled(): boolean

Help getter which returns enabled property of state.

Do not override this function. Use the state class instead.

Returns​

boolean

Implementation of​

IInfoTool.isEnabled

Inherited from​

MapTool.isEnabled

Source​

model/internal/tool/MapTool.ts:130


isSingleton()​

isSingleton(): boolean

Help getter which returns a logtical value whether the tool type is singleton.

Returns​

boolean

Implementation of​

IInfoTool.isSingleton

Inherited from​

MapTool.isSingleton

Source​

model/internal/tool/MapTool.ts:81


setEnabled()​

setEnabled(enabled): void

Some tools might be dynamicaly enabled/disabled. This function is called externally when the tool is enabled/disabled.

Override this function, if needed.

Parameters​

• enabled: boolean

Returns​

void

Implementation of​

IInfoTool.setEnabled

Inherited from​

MapTool.setEnabled

Source​

model/internal/tool/MapTool.ts:142


setProps()​

protected setProps(props): void

It updates the props.

Parameters​

• props: IMapObjectProps

Returns​

void

Inherited from​

MapTool.setProps

Source​

model/internal/object/MapObject.ts:38


switchEnabled()​

switchEnabled(): void

Help function which switches enabled state (enabled/disabled).

Do not override this function. Use setEnabled instead.

Returns​

void

Implementation of​

IInfoTool.switchEnabled

Inherited from​

MapTool.switchEnabled

Source​

model/internal/tool/MapTool.ts:158