projects/angular-cesium/src/lib/angular-cesium/components/ac-rectangle/ac-rectangle.component.ts
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>
*
EntityOnMapComponent
selector | ac-rectangle |
constructor(rectangleDrawer: RectangleDrawerService, mapLayers: MapLayersService)
|
|||||||||
Parameters :
|
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);
}
}