Skip to main content

IMapObjectDefaults

geovisto-map • Readme | API


geovisto-map / IMapObjectDefaults

Interface: IMapObjectDefaults\<TProps, TConfig>

This interface declares functions which return the default state values.

Author​

Jiri Hynek

Extended by​

Type parameters​

• TProps extends IMapObjectProps = IMapObjectProps

• TConfig extends IMapObjectConfig = IMapObjectConfig

Methods​

getConfig()​

getConfig(): TConfig

It returns a default config if no config is given.

Returns​

TConfig

Source​

model/types/object/IMapObjectDefaults.ts:22


getId()​

getId(): string

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

Returns​

string

Source​

model/types/object/IMapObjectDefaults.ts:32


getProps()​

getProps(): TProps

It returns default props if no props are given.

Returns​

TProps

Source​

model/types/object/IMapObjectDefaults.ts:17


getType()​

getType(): string

It returns a unique type string of the map object.

Returns​

string

Source​

model/types/object/IMapObjectDefaults.ts:27