map/map.service.ts
Properties |
Methods |
|
Async getAllPositionMOs | |||||||||||||||
getAllPositionMOs(byGroupIdMO?: IManagedObject, pageSize: number)
|
|||||||||||||||
Returns all managed object with a c8y_Position fragment.
Parameters :
The managed objects with position. |
getDefaultConfig |
getDefaultConfig()
|
Returns the map configuration configured on the tenant.
Returns :
Observable<MapDefaultConfig>
The configuration. If not set in tenant options the default configuration. |
getDefaultLayers |
getDefaultLayers()
|
Returns the layers configured in the current platform via tenant options.
Returns :
Observable<MapTileLayer[]>
The layers. If not set in tenant options the default layers. |
Async getLeaflet |
getLeaflet()
|
Returns the leaflet instance used by the cumulocity core.
Returns :
unknown
|
getMapTileLayerProviders |
getMapTileLayerProviders()
|
getMapTileLayers$ |
getMapTileLayers$()
|
Returns the layers available in this application. Layers are taken from plugins installed to this application. In case none of the plugins override the default layers, the default layers are also considered.
Returns :
Observable<MapTileLayer[]>
The layers. |
getMapTileLayersFromHookedProviders$ | ||||||
getMapTileLayersFromHookedProviders$(layerProviders: CumulocityServiceRegistry.MapTileLayerProvider[])
|
||||||
Parameters :
Returns :
Observable<MapTileLayer[]>
|
Async getPositionDevices |
getPositionDevices()
|
Returns all devices with c8y_Position.
Returns :
Promise<PositionManagedObject[]>
|
Async getPositionDevices | ||||||||
getPositionDevices(pageSize: number)
|
||||||||
Returns all devices with c8y_Position.
Parameters :
Returns :
Promise<PositionManagedObject[]>
|
Async getPositionDevices | ||||||||||||
getPositionDevices(pageSize: number, count)
|
||||||||||||
Returns all devices with c8y_Position.
Parameters :
Returns :
Promise<PositionManagedObject[]>
|
Async getPositionDevices | ||||||||||||
getPositionDevices(pageSize: number, count)
|
||||||||||||
Returns the number of all devices with c8y_Position.
Parameters :
Returns :
Promise<number>
|
Async getPositionDevices | |||||||||||||||
getPositionDevices(pageSize, count?: boolean)
|
|||||||||||||||
Returns all devices with c8y_Position.
Parameters :
Returns :
Promise<number | []>
All devices or the device count with a c8y_Position fragment. |
Async getPositionMOsFromBound | ||||||||
getPositionMOsFromBound(bound: L.LatLngBounds)
|
||||||||
Returns all managed objects with a c8y_Position fragment in a certain boundary.
Parameters :
Returns :
Promise<PositionManagedObject[]>
All position managed objects in the given bound. |
Async getPositionMOsFromBound | ||||||||||||
getPositionMOsFromBound(bound: L.LatLngBounds, byGroupIdMO: IManagedObject)
|
||||||||||||
Returns all managed objects with a c8y_Position fragment in a certain boundary that belongs to a certain group.
Parameters :
Returns :
Promise<PositionManagedObject[]>
All position managed objects in the given bound that are children of the given group. |
Async getPositionMOsFromBound | ||||||||||||||||
getPositionMOsFromBound(bound: L.LatLngBounds, byGroupIdMO: IManagedObject, count)
|
||||||||||||||||
Counts the managed objects in a certain boundary belonging to a group.
Parameters :
Returns :
Promise<number>
The count of the managed objects. |
Async getPositionMOsFromBound | ||||||||||||||||
getPositionMOsFromBound(bound: L.LatLngBounds, byGroupIdMO?: IManagedObject, count)
|
||||||||||||||||
Parameters :
Returns :
Promise<[] | number>
|
Async getPositionMOsFromBoundCount | ||||||||||||
getPositionMOsFromBoundCount(bound: L.LatLngBounds, byGroupIdMO?: IManagedObject)
|
||||||||||||
Counts all managed objects in a given bound with a c8y_Position fragment.
Parameters :
Returns :
Promise<number>
The number of all position managed objects in the given bound (and group). |
Static getStatus | ||||||||
getStatus(device: PositionManagedObject)
|
||||||||
Returns asset icon status for highest alarm severity found in device object.
Parameters :
Returns :
"text-muted" | "status critical" | "status major" | "status minor" | "status warning"
Status string according to alarm severity |
hasPosition | ||||||||
hasPosition(mo: IManagedObject)
|
||||||||
Verifies if a given managed object has a position fragment.
Parameters :
Returns :
any
|
isPositionedDevice | ||||||||
isPositionedDevice(mo: IManagedObject)
|
||||||||
Verifies if a given managed object is a device with a position fragment.
Parameters :
Returns :
boolean
|
CLUSTER_LEVEL_THRESHOLD |
Type : number
|
Default value : 500
|
The count until the cluster is sized. There are a maximum of three clusters: 1, 4 or 16. |
MAX_DEVICE_PER_CLUSTER |
Type : number
|
Default value : 200
|
The devices that are maximal displayed in one cluster. |