Skip to main content

InfoToolDefaults

geovisto-mapReadme | API


geovisto-map / InfoToolDefaults

Class: InfoToolDefaults

This class provide functions which return the default state values.

Author

Jiri Hynek

Author

Tomas Koscielniak

Extends

Implements

Constructors

new InfoToolDefaults()

new InfoToolDefaults(): InfoToolDefaults

Returns

InfoToolDefaults

Inherited from

MapToolDefaults.constructor

Properties

idString?

protected optional idString: string

Inherited from

MapToolDefaults.idString

Source

model/internal/object/MapObjectDefaults.ts:13


TYPE

static TYPE: string = "geovisto-tool-info"

Static tool type constant.

Source

tools/info/model/internal/tool/InfoToolDefaults.ts:55


id

static protected id: number

Inherited from

MapToolDefaults.id

Source

model/internal/object/MapObjectDefaults.ts:12

Methods

generateId()

protected generateId(): string

It returns identifier which is used when no identifier is specified.

Returns

string

Inherited from

MapToolDefaults.generateId

Source

model/internal/object/MapObjectDefaults.ts:54


getConfig()

getConfig(): IInfoToolConfig

It returns default config if no config is given.

Returns

IInfoToolConfig

Implementation of

IInfoToolDefaults.getConfig

Overrides

MapToolDefaults.getConfig

Source

tools/info/model/internal/tool/InfoToolDefaults.ts:24


getDataManager()

getDataManager(): IMapDataManager

It returns default map data manager.

Returns

IMapDataManager

Inherited from

MapToolDefaults.getDataManager

Source

model/internal/tool/MapToolDefaults.ts:20


getGeoDataManager()

getGeoDataManager(geoDataArray): IGeoDataManager

It returns default geo data manager.

Parameters

geoDataArray: undefined | IGeoData[]

Returns

IGeoDataManager

Inherited from

MapToolDefaults.getGeoDataManager

Source

model/internal/tool/MapToolDefaults.ts:27


getIcon()

getIcon(): string

It returns the icon of the tool.

Returns

string

Implementation of

IInfoToolDefaults.getIcon

Overrides

MapToolDefaults.getIcon

Source

tools/info/model/internal/tool/InfoToolDefaults.ts:74


getId()

getId(): string

It returns identifier which is used when no identifier is specified.

Returns

string

Implementation of

IInfoToolDefaults.getId

Inherited from

MapToolDefaults.getId

Source

model/internal/object/MapObjectDefaults.ts:44


getInfoDataManager()

getInfoDataManager(): IInfoDataManager

It returns default markdown manager.

Returns

IInfoDataManager

Implementation of

IInfoToolDefaults.getInfoDataManager

Source

tools/info/model/internal/tool/InfoToolDefaults.ts:33


getLabel()

getLabel(): string

It returns the label of the tool.

Returns

string

Implementation of

IInfoToolDefaults.getLabel

Overrides

MapToolDefaults.getLabel

Source

tools/info/model/internal/tool/InfoToolDefaults.ts:67


getMarkdown()

getMarkdown(): IInfoData

It returns default markdown.

Returns

IInfoData

Implementation of

IInfoToolDefaults.getMarkdown

Source

tools/info/model/internal/tool/InfoToolDefaults.ts:41


getProps()

getProps(): IMapObjectProps

It returns default props if no props are given.

Returns

IMapObjectProps

Implementation of

IInfoToolDefaults.getProps

Inherited from

MapToolDefaults.getProps

Source

model/internal/object/MapObjectDefaults.ts:18


getType()

getType(): string

It returns a unique string of the tool type.

Returns

string

Implementation of

IInfoToolDefaults.getType

Overrides

MapToolDefaults.getType

Source

tools/info/model/internal/tool/InfoToolDefaults.ts:60


isEnabled()

isEnabled(): boolean

By default, the tool is enabled.

Returns

boolean

Implementation of

IInfoToolDefaults.isEnabled

Inherited from

MapToolDefaults.isEnabled

Source

model/internal/tool/MapToolDefaults.ts:50


isSingleton()

isSingleton(): boolean

Only one info tool should be present in the Geovisto map.

Returns

boolean

Implementation of

IInfoToolDefaults.isSingleton

Overrides

MapToolDefaults.isSingleton

Source

tools/info/model/internal/tool/InfoToolDefaults.ts:48