Skip to main content

MapObjectDefaults

geovisto-map • Readme | API


geovisto-map / MapObjectDefaults

Class: MapObjectDefaults

This class provide functions which return the default state values.

Author​

Jiri Hynek

Extended by​

Implements​

Constructors​

new MapObjectDefaults()​

new MapObjectDefaults(): MapObjectDefaults

Returns​

MapObjectDefaults

Properties​

idString?​

protected optional idString: string

Source​

model/internal/object/MapObjectDefaults.ts:13


id​

static protected id: number

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

Source​

model/internal/object/MapObjectDefaults.ts:54


getConfig()​

getConfig(): IMapObjectConfig

It returns a default config if no config is given.

Returns​

IMapObjectConfig

Implementation of​

IMapObjectDefaults.getConfig

Source​

model/internal/object/MapObjectDefaults.ts:27


getId()​

getId(): string

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

Returns​

string

Implementation of​

IMapObjectDefaults.getId

Source​

model/internal/object/MapObjectDefaults.ts:44


getProps()​

getProps(): IMapObjectProps

It returns default props if no props are given.

Returns​

IMapObjectProps

Implementation of​

IMapObjectDefaults.getProps

Source​

model/internal/object/MapObjectDefaults.ts:18


getType()​

getType(): string

It returns a unique type string of the tool.

Returns​

string

Implementation of​

IMapObjectDefaults.getType

Source​

model/internal/object/MapObjectDefaults.ts:37