Skip to main content

IMapObjectsManager

geovisto-mapReadme | API


geovisto-map / IMapObjectsManager

Interface: IMapObjectsManager\<T>

This interface declares functions for using map objects which can be identified by uniquie string.

Author

Jiri Hynek

Extended by

Type parameters

T extends IMapObject

Methods

add()

add(object): void

It adds object to the list of objects.

Parameters

object: T

Returns

void

Source

model/types/object/IMapObjectsManager.ts:30


getAll()

getAll(): T[]

The function returns available map objects.

Returns

T[]

Source

model/types/object/IMapObjectsManager.ts:13


getById()

getById(id): undefined | T

The function returns map object of given unique identifier.

Parameters

id: string

Returns

undefined | T

Source

model/types/object/IMapObjectsManager.ts:68


getByType()

getByType(type): T[]

The function returns map objects of given type.

Parameters

type: string

Returns

T[]

Source

model/types/object/IMapObjectsManager.ts:61


getIds()

getIds(): string[]

Help function which returns the list of object string identifiers.

Returns

string[]

Source

model/types/object/IMapObjectsManager.ts:54


getTypes()

getTypes(): string[]

Help function which returns the list of object string types.

Returns

string[]

Source

model/types/object/IMapObjectsManager.ts:49


isEmpty()

isEmpty(): boolean

The function returns true if size() is 0.

Returns

boolean

Source

model/types/object/IMapObjectsManager.ts:23


remove()

remove(object): void

It removes object from the list of objects.

Parameters

object: T

Returns

void

Source

model/types/object/IMapObjectsManager.ts:37


removeById()

removeById(id): void

It removes object of the given id from the list of objects.

Parameters

id: string

Returns

void

Source

model/types/object/IMapObjectsManager.ts:44


size()

size(): number

The function returns the number of objects.

Returns

number

Source

model/types/object/IMapObjectsManager.ts:18