map/cluster-map.component.ts
providers |
ManagedObjectRealtimeService
|
selector | c8y-cluster-map |
templateUrl | ./cluster-map.component.html |
Properties |
|
Methods |
|
Inputs |
Outputs |
constructor(moRealtimeService: ManagedObjectRealtimeService, mapService: MapService, layers$: Observable
|
|||||||||||||||||||||||||||||||||
Parameters :
|
asset |
Type : PositionManagedObject
|
config |
Type : ClusterMapConfig
|
rootNode |
Type : IManagedObject
|
showClusterColor |
Type : boolean
|
Default value : false
|
assets |
Type : PositionManagedObject | PositionManagedObject[]
|
polyline$ |
Type : Observable<[] | []>
|
Default value : NEVER
|
polylineOptions |
Type : L.PolylineOptions
|
mapChange |
Type : EventEmitter
|
onInit |
Type : EventEmitter
|
onMap |
Type : BehaviorSubject
|
onMove |
Type : Observable<L.LeafletEvent>
|
onMoveEnd |
Type : Observable<L.LeafletEvent>
|
onRealtimeUpdate |
Type : EventEmitter
|
onZoomEnd |
Type : Observable<L.LeafletEvent>
|
onZoomStart |
Type : Observable<L.LeafletEvent>
|
cancelReload |
cancelReload()
|
Returns :
void
|
changeConfig | ||||||
changeConfig(change: SimpleChange)
|
||||||
Parameters :
Returns :
void
|
listenToClusterAndIntervalChanges |
listenToClusterAndIntervalChanges()
|
Returns :
void
|
listenToClusterMapChanges |
listenToClusterMapChanges()
|
Returns :
void
|
Async ngAfterViewInit |
ngAfterViewInit()
|
Returns :
any
|
Async ngOnChanges | ||||||
ngOnChanges(changes: SimpleChanges)
|
||||||
Parameters :
Returns :
any
|
refreshMarkers |
refreshMarkers()
|
Returns :
void
|
reload |
reload()
|
Returns :
void
|
Async reset |
reset()
|
Returns :
any
|
Protected addLayers | ||||||
addLayers(layers: MapTileLayer[])
|
||||||
Parameters :
Returns :
void
|
addMarkerToMap | ||||||
addMarkerToMap(marker: C8yMarker | L.Marker)
|
||||||
Parameters :
Returns :
void
|
center |
center()
|
Returns :
void
|
clearMarkers | ||||||
clearMarkers(fragment?: C8yMarkerAttributes)
|
||||||
Parameters :
Returns :
void
|
findMarker | ||||||
findMarker(moOrId: string | IEvent | PositionManagedObject)
|
||||||
Parameters :
Returns :
any
|
getAssetIcon | ||||||
getAssetIcon(asset: PositionManagedObject)
|
||||||
Parameters :
Returns :
any
|
getAssetMarker | ||||||
getAssetMarker(asset: PositionManagedObject)
|
||||||
Parameters :
Returns :
any
|
getTrackingIcon |
getTrackingIcon()
|
Returns :
any
|
getTrackingMarker | ||||||
getTrackingMarker(event: IEvent)
|
||||||
Parameters :
Returns :
any
|
Protected handleMobile |
handleMobile()
|
Returns :
void
|
Protected hasChanged | |||||||||
hasChanged(change: SimpleChange, prop)
|
|||||||||
Parameters :
Returns :
boolean
|
Protected initMap | |||||||||
initMap(layers: MapTileLayer[], defaultConfig: MapConfig)
|
|||||||||
Parameters :
Returns :
void
|
Protected initOutputs |
initOutputs()
|
Returns :
void
|
moveToPositionOfMo | ||||||
moveToPositionOfMo(positions: PositionManagedObject | PositionManagedObject[])
|
||||||
Parameters :
Returns :
void
|
Protected ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
refresh |
refresh()
|
Returns :
void
|
removeMarker | ||||||
removeMarker(marker: C8yMarker | L.Marker)
|
||||||
Parameters :
Returns :
void
|
startRealtime |
startRealtime()
|
Returns :
void
|
stopRealtime |
stopRealtime()
|
Returns :
void
|
Protected toggleControls |
toggleControls()
|
Returns :
void
|
Protected unsubscribeAllListeners |
unsubscribeAllListeners()
|
Returns :
void
|
alerts |
Type : DynamicComponentAlertAggregator
|
countdownIntervalComp |
Type : CountdownIntervalComponent
|
errorNotifier |
Default value : new BehaviorSubject(null)
|
isLoading$ |
Default value : new BehaviorSubject(false)
|
Protected destroy$ |
Default value : new Subject<void>()
|
isInit |
Default value : false
|
Tells if the map was already initialized. |
leaflet |
The leaflet representation used. |
map |
Type : L.Map
|
The leaflet map object. |
mapElement |
Type : ElementRef
|
Decorators :
@ViewChild('map')
|
markers |
Type : Array<C8yMarker | L.Marker>
|
Default value : []
|
The markers placed on the map. |
popup |
Type : MapPopupDirective
|
Decorators :
@ContentChild(MapPopupDirective)
|
Protected realtimeSubscription |
Type : Subscription
|
Protected unsubscribeTrigger$ |
Default value : new Subject<void>()
|
<div class="c8y-map">
<div #map></div>
</div>
<ng-content></ng-content>