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

Index

Properties
Methods
Inputs

Constructor

constructor(labelDrawer: LabelDrawerService, mapLayers: MapLayersService)
Parameters :
Name Type Optional
labelDrawer LabelDrawerService No
mapLayers MapLayersService No

Inputs

props

Type : any

Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:10

Methods

drawOnMap
drawOnMap()
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:36
Returns : any
ngOnChanges
ngOnChanges(changes: SimpleChanges)
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:29
Parameters :
Name Type Optional
changes SimpleChanges No
Returns : void
ngOnDestroy
ngOnDestroy()
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:52
Returns : void
ngOnInit
ngOnInit()
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:19
Returns : void
removeFromMap
removeFromMap()
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:41
Returns : any
updateOnMap
updateOnMap()
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:46
Returns : any

Properties

Protected dataSources
dataSources: any
Type : any
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:14
Protected selfPrimitive
selfPrimitive: any
Type : any
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:12
Protected selfPrimitiveIsDraw
selfPrimitiveIsDraw: boolean
Type : boolean
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:13
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 ""