map/map.component.ts
providers |
ManagedObjectRealtimeService
|
selector | c8y-map |
templateUrl | ./map.component.html |
Properties |
|
Methods |
|
Inputs |
Outputs |
constructor(moRealtimeService: ManagedObjectRealtimeService, mapService: MapService, layers$: Observable
|
|||||||||||||||||||||||||||
Parameters :
|
assets |
Type : PositionManagedObject | PositionManagedObject[]
|
config |
Type : MapConfig
|
Default value : {}
|
polyline$ |
Type : Observable<[] | []>
|
Default value : NEVER
|
polylineOptions |
Type : L.PolylineOptions
|
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>
|
Protected addLayers | ||||||
addLayers(layers: MapTileLayer[])
|
||||||
Parameters :
Returns :
void
|
addMarkerToMap | ||||||
addMarkerToMap(marker: C8yMarker | L.Marker)
|
||||||
Parameters :
Returns :
void
|
center |
center()
|
Returns :
void
|
Protected changeConfig | ||||||
changeConfig(change: SimpleChange)
|
||||||
Parameters :
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 Async ngAfterViewInit |
ngAfterViewInit()
|
Returns :
any
|
Protected ngOnChanges | ||||||
ngOnChanges(changes: SimpleChanges)
|
||||||
Parameters :
Returns :
void
|
Protected ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
refresh |
refresh()
|
Returns :
void
|
refreshMarkers |
refreshMarkers()
|
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
|
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>