arlas-wui-toolkit / Exports / AoiDatabase
Class: AoiDatabase
Hierarchy
↳ AoiDatabase
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new AoiDatabase()
Overrides
ArlasLocalDatabase.constructor
Defined in
projects/arlas-toolkit/src/lib/services/aoi/aoiDatabase.ts:26
Properties
dataChange
• dataChange: BehaviorSubject
<Aoi
[]>
Stream that emits whenever the data has been modified.
Inherited from
Defined in
projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:26
storageKey
• storageKey: string
Inherited from
Defined in
projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:32
storageObjectMap
• storageObjectMap: Map
<string
, Aoi
>
Inherited from
ArlasLocalDatabase.storageObjectMap
Defined in
projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:30
Accessors
data
• get
data(): T
[]
Returns
T
[]
Inherited from
ArlasLocalDatabase.data
Defined in
projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:27
Methods
add
▸ add(storageObject
): Observable
<void
>
Parameters
Name | Type |
---|---|
storageObject |
Aoi |
Returns
Observable
<void
>
Inherited from
Defined in
projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:58
createAoi
▸ createAoi(name
, geometry
, visibility?
, date?
, id?
): Aoi
Parameters
Name | Type | Default value |
---|---|---|
name |
string |
undefined |
geometry |
any |
undefined |
visibility |
boolean |
false |
date? |
Date |
undefined |
id? |
string |
undefined |
Returns
Defined in
projects/arlas-toolkit/src/lib/services/aoi/aoiDatabase.ts:41
init
▸ init(aoi
): Aoi
Method call for each element at init
Parameters
Name | Type | Description |
---|---|---|
aoi |
Aoi |
Object to init of type |
Returns
Overrides
Defined in
projects/arlas-toolkit/src/lib/services/aoi/aoiDatabase.ts:30
remove
▸ remove(id
): Observable
<void
>
Parameters
Name | Type |
---|---|
id |
string |
Returns
Observable
<void
>
Inherited from
Defined in
projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:69
update
▸ update(id
, storageObject
): Observable
<void
>
Parameters
Name | Type |
---|---|
id |
string |
storageObject |
Aoi |
Returns
Observable
<void
>
Inherited from
Defined in
projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:85