File

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

Description

This is a billboard implementation. The element must be a child of ac-map element. The properties of props are the same as the properties of Entity and BillboardGraphics:

Usage :

 *    <ac-billboard [props]="{
 *      image: image,
 *      position: position,
 *      scale: scale,
 *      color: color,
 *      name: name
 *    }">;
 *    </ac-billboard>
 *

Extends

EntityOnMapComponent

Metadata

selector ac-billboard

Constructor

constructor(billboardDrawer: BillboardDrawerService, mapLayers: MapLayersService)
Parameters :
Name Type Optional
billboardDrawer BillboardDrawerService No
mapLayers MapLayersService No
import { Component } from '@angular/core';
import { EntityOnMapComponent } from '../../services/entity-on-map/entity-on-map.component';
import { BillboardDrawerService } from '../../services/drawers/billboard-drawer/billboard-drawer.service';
import { MapLayersService } from '../../services/map-layers/map-layers.service';

/**
 *  This is a billboard implementation.
 *  The element must be a child of ac-map 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 [props]="{
 *      image: image,
 *      position: position,
 *      scale: scale,
 *      color: color,
 *      name: name
 *    }">;
 *    </ac-billboard>
 *  ```
 */

@Component({
  selector: 'ac-billboard',
  template: '',
})
export class AcBillboardComponent extends EntityOnMapComponent {

  constructor(billboardDrawer: BillboardDrawerService, mapLayers: MapLayersService) {
    super(billboardDrawer, mapLayers);
  }
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""