File

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

Description

This is a rectangle 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 RectangleGraphics:

Usage:

 *    <ac-rectangle props="{
 *      coordinates: rectangle.coordinates,
 *      material: rectangle.material,
 *      height: rectangle.height
 *    }">
 *    </ac-rectangle>
 *

Extends

EntityOnMapComponent

Metadata

selector ac-rectangle

Constructor

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

/**
 *  This is a rectangle 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 RectangleGraphics:
 *  + https://cesiumjs.org/Cesium/Build/Documentation/Entity.html
 *  + https://cesiumjs.org/Cesium/Build/Documentation/RectangleGraphics.html
 *
 *  __Usage:__
 *  ```
 *    <ac-rectangle props="{
 *      coordinates: rectangle.coordinates,
 *      material: rectangle.material,
 *      height: rectangle.height
 *    }">
 *    </ac-rectangle>
 *  ```
 */
@Component({
  selector: 'ac-rectangle',
  template: ''
})
export class AcRectangleComponent extends EntityOnMapComponent {
  constructor(rectangleDrawer: RectangleDrawerService, mapLayers: MapLayersService) {
    super(rectangleDrawer, mapLayers);
  }
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""