File

projects/angular-cesium/src/lib/angular-cesium/components/ac-label/ac-label.component.ts

Description

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>;
 *

Extends

EntityOnMapComponent

Metadata

selector ac-label

Constructor

constructor(labelDrawer: LabelDrawerService, mapLayers: MapLayersService)
Parameters :
Name Type Optional
labelDrawer LabelDrawerService No
mapLayers MapLayersService No
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);
  }
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""