arlas-wui-toolkit > "src/app/services/aoi/aoiDatabase" > AoiDatabase

Class: AoiDatabase

Hierarchy

ArlasLocalDatabase<Aoi>

↳ AoiDatabase

Index

Constructors

Properties

Accessors

Methods


Constructors

constructor

new AoiDatabase(): AoiDatabase

Overrides ArlasLocalDatabase.constructor

Defined in src/app/services/aoi/aoiDatabase.ts:24

Returns: AoiDatabase


Properties

dataChange

● dataChange: BehaviorSubject<Aoi[]> = new BehaviorSubject([])

Inherited from ArlasLocalDatabase.dataChange

Defined in src/app/tools/arlasLocalDatabase.ts:25


storageKey

● storageKey: string

Inherited from ArlasLocalDatabase.storageKey

Defined in src/app/tools/arlasLocalDatabase.ts:29


storageObjectMap

● storageObjectMap: Map<string, Aoi> = new Map()

Inherited from ArlasLocalDatabase.storageObjectMap

Defined in src/app/tools/arlasLocalDatabase.ts:27


Accessors

data

data:

Inherited from ArlasLocalDatabase.data

Defined in src/app/tools/arlasLocalDatabase.ts:26


Methods

add

add(storageObject: Aoi): void

Inherited from ArlasLocalDatabase.add

Defined in src/app/tools/arlasLocalDatabase.ts:55

Parameters:

Name Type
storageObject Aoi

Returns: void


createAoi

createAoi(name: string, geometry: any, visibility?: boolean, date?: Date, id?: string): Aoi

Defined in src/app/services/aoi/aoiDatabase.ts:41

Parameters:

Name Type Default value
name string -
geometry any -
Default value visibility boolean false
Optional date Date -
Optional id string -

Returns: Aoi


init

init(aoi: Aoi): Aoi

Overrides ArlasLocalDatabase.init

Defined in src/app/services/aoi/aoiDatabase.ts:30

Parameters:

Name Type
aoi Aoi

Returns: Aoi


remove

remove(id: string): void

Inherited from ArlasLocalDatabase.remove

Defined in src/app/tools/arlasLocalDatabase.ts:64

Parameters:

Name Type
id string

Returns: void


update

update(id: string, storageObject: Aoi): void

Inherited from ArlasLocalDatabase.update

Defined in src/app/tools/arlasLocalDatabase.ts:76

Parameters:

Name Type
id string
storageObject Aoi

Returns: void