Skip to main content

MapToolDefaults

geovisto-mapReadme | API


geovisto-map / MapToolDefaults

Class: MapToolDefaults

This class provide functions which return the default state values.

Author

Jiri Hynek

Extends

Implements

Constructors

new MapToolDefaults()

new MapToolDefaults(): MapToolDefaults

Returns

MapToolDefaults

Inherited from

MapObjectDefaults.constructor

Properties

idString?

protected optional idString: string

Inherited from

MapObjectDefaults.idString

Source

model/internal/object/MapObjectDefaults.ts:13


id

static protected id: number

Inherited from

MapObjectDefaults.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

MapObjectDefaults.generateId

Source

model/internal/object/MapObjectDefaults.ts:54


getConfig()

getConfig(): IMapToolConfig

By defaults it returns the config with undefined props.

Returns

IMapToolConfig

Implementation of

IMapToolDefaults.getConfig

Overrides

MapObjectDefaults.getConfig

Source

model/internal/tool/MapToolDefaults.ts:34


getDataManager()

getDataManager(): IMapDataManager

It returns default map data manager.

Returns

IMapDataManager

Source

model/internal/tool/MapToolDefaults.ts:20


getGeoDataManager()

getGeoDataManager(geoDataArray): IGeoDataManager

It returns default geo data manager.

Parameters

geoDataArray: undefined | IGeoData[]

Returns

IGeoDataManager

Source

model/internal/tool/MapToolDefaults.ts:27


getIcon()

getIcon(): string

It returns the icon of the tool.

Returns

string

Implementation of

IMapToolDefaults.getIcon

Source

model/internal/tool/MapToolDefaults.ts:64


getId()

getId(): string

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

Returns

string

Implementation of

IMapToolDefaults.getId

Inherited from

MapObjectDefaults.getId

Source

model/internal/object/MapObjectDefaults.ts:44


getLabel()

getLabel(): string

It returns the label of the tool.

Returns

string

Implementation of

IMapToolDefaults.getLabel

Source

model/internal/tool/MapToolDefaults.ts:57


getProps()

getProps(): IMapObjectProps

It returns default props if no props are given.

Returns

IMapObjectProps

Implementation of

IMapToolDefaults.getProps

Inherited from

MapObjectDefaults.getProps

Source

model/internal/object/MapObjectDefaults.ts:18


getType()

getType(): string

It returns a unique type string of the tool.

Returns

string

Implementation of

IMapToolDefaults.getType

Inherited from

MapObjectDefaults.getType

Source

model/internal/object/MapObjectDefaults.ts:37


isEnabled()

isEnabled(): boolean

By default, the tool is enabled.

Returns

boolean

Implementation of

IMapToolDefaults.isEnabled

Source

model/internal/tool/MapToolDefaults.ts:50


isSingleton()

isSingleton(): boolean

By default, the tool is singleton

Returns

boolean

Implementation of

IMapToolDefaults.isSingleton

Source

model/internal/tool/MapToolDefaults.ts:43