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:
* <ac-label [props]="{
* position: position,
* text: 'labelText',
* font: '30px sans-serif',
* fillColor : aquamarine
* }">
* </ac-label>;
*
EntityOnMapComponent
selector | ac-label |
constructor(labelDrawer: LabelDrawerService, mapLayers: MapLayersService)
|
|||||||||
Parameters :
|
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: '',
})
export class AcLabelComponent extends EntityOnMapComponent {
constructor(labelDrawer: LabelDrawerService, mapLayers: MapLayersService) {
super(labelDrawer, mapLayers);
}
}