File

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

Description

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

Extends

BasicDesc

Metadata

providers { provide: BasicDesc, useExisting: forwardRef(() => AcBillboardDescComponent) }
selector ac-billboard-desc

Constructor

constructor(billboardDrawer: BillboardDrawerService, layerService: LayerService, computationCache: ComputationCache, cesiumProperties: CesiumProperties)
Parameters :
Name Type Optional
billboardDrawer BillboardDrawerService No
layerService LayerService No
computationCache ComputationCache No
cesiumProperties CesiumProperties No
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);
  }
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""