projects/angular-cesium/src/lib/angular-cesium/components/ac-label/ac-label.component.ts
This is a label implementation. The ac-label element must be a child of ac-map element. The properties of props are the same as the properties of Entity and LabelGraphics:
Usage:
Example :<ac-label [props]="{
position: position,
text: 'labelText',
font: '30px sans-serif',
fillColor : aquamarine
}">
</ac-label>;
selector | ac-label |
Properties |
|
Methods |
Inputs |
constructor(labelDrawer: LabelDrawerService, mapLayers: MapLayersService)
|
|||||||||
Parameters :
|
props | |
Type : any
|
|
Inherited from
EntityOnMapComponent
|
|
Defined in
EntityOnMapComponent:11
|
drawOnMap |
drawOnMap()
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:37
|
Returns :
any
|
ngOnChanges | ||||||
ngOnChanges(changes: SimpleChanges)
|
||||||
Inherited from
EntityOnMapComponent
|
||||||
Defined in
EntityOnMapComponent:30
|
||||||
Parameters :
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:53
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:20
|
Returns :
void
|
removeFromMap |
removeFromMap()
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:42
|
Returns :
any
|
updateOnMap |
updateOnMap()
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:47
|
Returns :
any
|
Protected dataSources |
Type : any
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:15
|
Protected selfPrimitive |
Type : any
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:13
|
Protected selfPrimitiveIsDraw |
Type : boolean
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:14
|
import { Component } from '@angular/core';
import { EntityOnMapComponent } from '../../services/entity-on-map/entity-on-map.component';
import { LabelDrawerService } from '../../services/drawers/label-drawer/label-drawer.service';
import { MapLayersService } from '../../services/map-layers/map-layers.service';
/**
* This is a label implementation.
* The ac-label element must be a child of ac-map element.
* The properties of props are the same as the properties of Entity and LabelGraphics:
* + https://cesiumjs.org/Cesium/Build/Documentation/Entity.html
* + https://cesiumjs.org/Cesium/Build/Documentation/LabelGraphics.html
*
* __Usage:__
* ```
* <ac-label [props]="{
* position: position,
* text: 'labelText',
* font: '30px sans-serif',
* fillColor : aquamarine
* }">
* </ac-label>;
* ```
*/
@Component({
selector: 'ac-label',
template: '',
standalone: false
})
export class AcLabelComponent extends EntityOnMapComponent {
constructor(labelDrawer: LabelDrawerService, mapLayers: MapLayersService) {
super(labelDrawer, mapLayers);
}
}