projects/angular-cesium/src/lib/angular-cesium/components/ac-billborad-desc/ac-billborad-desc.component.ts
This is a billboard implementation. The element must be a child of ac-layer element. The properties of props are the same as the properties of Entity and BillboardGraphics:
Usage :
* <ac-billboard-desc props="{
* image: track.image,
* position: track.position,
* scale: track.scale,
* color: track.color,
* name: track.name
* }">
* </ac-billboard-desc>
*
BasicDesc
providers |
{ provide: BasicDesc, useExisting: forwardRef(() => AcBillboardDescComponent) }
|
selector | ac-billboard-desc |
constructor(billboardDrawer: BillboardDrawerService, layerService: LayerService, computationCache: ComputationCache, cesiumProperties: CesiumProperties)
|
|||||||||||||||
Parameters :
|
import { Component, forwardRef } from '@angular/core';
import { BasicDesc } from '../../services/basic-desc/basic-desc.service';
import { LayerService } from '../../services/layer-service/layer-service.service';
import { BillboardDrawerService } from '../../services/drawers/billboard-drawer/billboard-drawer.service';
import { ComputationCache } from '../../services/computation-cache/computation-cache.service';
import { CesiumProperties } from '../../services/cesium-properties/cesium-properties.service';
/**
* This is a billboard implementation.
* The element must be a child of ac-layer element.
* The properties of props are the same as the properties of Entity and BillboardGraphics:
* + https://cesiumjs.org/Cesium/Build/Documentation/Entity.html
* + https://cesiumjs.org/Cesium/Build/Documentation/BillboardGraphics.html
*
* __Usage :__
* ```
* <ac-billboard-desc props="{
* image: track.image,
* position: track.position,
* scale: track.scale,
* color: track.color,
* name: track.name
* }">
* </ac-billboard-desc>
* ```
*/
@Component({
selector: 'ac-billboard-desc',
template: '',
providers: [{provide: BasicDesc, useExisting: forwardRef(() => AcBillboardDescComponent)}],
})
export class AcBillboardDescComponent extends BasicDesc {
constructor(billboardDrawer: BillboardDrawerService, layerService: LayerService,
computationCache: ComputationCache, cesiumProperties: CesiumProperties) {
super(billboardDrawer, layerService, computationCache, cesiumProperties);
}
}