Skip to main content

GeovistoMapDefaults

geovisto-mapReadme | API


geovisto-map / GeovistoMapDefaults

Class: GeovistoMapDefaults

This class provide functions which return the default state values.

Author

Jiri Hynek

Extends

Implements

Constructors

new GeovistoMapDefaults()

new GeovistoMapDefaults(): GeovistoMapDefaults

Returns

GeovistoMapDefaults

Inherited from

MapObjectDefaults.constructor

Properties

idString?

protected optional idString: string

Inherited from

MapObjectDefaults.idString

Source

model/internal/object/MapObjectDefaults.ts:13


TYPE

static TYPE: string = "geovisto-map"

Source

model/internal/map/GeovistoMapDefaults.ts:47


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(): IMapConfig

It returns default map config.

All config variables are undefined since they might override the props.

Returns

IMapConfig

Implementation of

IMapDefaults.getConfig

Overrides

MapObjectDefaults.getConfig

Source

model/internal/map/GeovistoMapDefaults.ts:36


getConfigManager()

getConfigManager(): IMapConfigManager

It returns default map config manager.

Returns

IMapConfigManager

Implementation of

IMapDefaults.getConfigManager

Source

model/internal/map/GeovistoMapDefaults.ts:27


getEventManager()

getEventManager(): IMapEventManager

It returns a default map event manager.

Returns

IMapEventManager

event manager

Implementation of

IMapDefaults.getEventManager

Source

model/internal/map/GeovistoMapDefaults.ts:61


getGeoDataManager()

getGeoDataManager(): IGeoDataManager

It returns a default geo data manager.

Returns

IGeoDataManager

Implementation of

IMapDefaults.getGeoDataManager

Source

model/internal/map/GeovistoMapDefaults.ts:98


getGlobals()

getGlobals(): IMapGlobals

It returns a default global state variables.

Returns

IMapGlobals

Implementation of

IMapDefaults.getGlobals

Source

model/internal/map/GeovistoMapDefaults.ts:107


getId()

getId(): string

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

Returns

string

Implementation of

IMapDefaults.getId

Inherited from

MapObjectDefaults.getId

Source

model/internal/object/MapObjectDefaults.ts:44


getMapCenter()

getMapCenter(): object

It returns a default center coordinates in Leaflet map.

Returns

object

lat

lat: number

lng

lng: number

Implementation of

IMapDefaults.getMapCenter

Source

model/internal/map/GeovistoMapDefaults.ts:125


getMapData()

getMapData(): IMapDataManager

It returns a default map data manager.

Returns

IMapDataManager

Implementation of

IMapDefaults.getMapData

Source

model/internal/map/GeovistoMapDefaults.ts:91


getMapStructure()

getMapStructure(): object

It returns a default map structure defined with respect to the leaflet library.

Returns

object

maxBounds

maxBounds: [[number, number], [number, number]]

maxZoom

maxZoom: number

Implementation of

IMapDefaults.getMapStructure

Source

model/internal/map/GeovistoMapDefaults.ts:135


getProps()

getProps(): IMapObjectProps

It returns default props if no props are given.

Returns

IMapObjectProps

Implementation of

IMapDefaults.getProps

Inherited from

MapObjectDefaults.getProps

Source

model/internal/object/MapObjectDefaults.ts:18


getTemplates()

getTemplates(): IMapTemplates

It returns a default managers providing templates.

Returns

IMapTemplates

Implementation of

IMapDefaults.getTemplates

Source

model/internal/map/GeovistoMapDefaults.ts:68


getToolTemplates()

getToolTemplates(): MapToolsManager

It returns a default tools manager containing used tools.

Returns

MapToolsManager

Implementation of

IMapDefaults.getToolTemplates

Source

model/internal/map/GeovistoMapDefaults.ts:77


getTools()

getTools(): IMapToolsManager

It returns a default tools manager containing used tools.

Returns

IMapToolsManager

Implementation of

IMapDefaults.getTools

Source

model/internal/map/GeovistoMapDefaults.ts:84


getType()

getType(): string

It returns a unique type string of the object.

Returns

string

Implementation of

IMapDefaults.getType

Overrides

MapObjectDefaults.getType

Source

model/internal/map/GeovistoMapDefaults.ts:52


getZoom()

getZoom(): number

It returns a default zoom level.

Returns

number

Implementation of

IMapDefaults.getZoom

Source

model/internal/map/GeovistoMapDefaults.ts:118