projects/angular-cesium/src/lib/angular-cesium/components/ac-polygon/ac-polygon.component.ts
This is a polygon implementation.
The ac-label element must be a child of ac-map element.
Set height
prop for performance enhancement
The properties of props are the same as the properties of Entity and PolygonGraphics:
Usage:
Example : <ac-polygon props="{
hierarchy: polygon.hierarchy,
material: polygon.material,
height: polygon.height
}">
</ac-polygon>
selector | ac-polygon |
Properties |
|
Methods |
Inputs |
constructor(polygonDrawer: PolygonDrawerService, mapLayers: MapLayersService)
|
|||||||||
Parameters :
|
props | |
Type : any
|
|
Inherited from
EntityOnMapComponent
|
|
Defined in
EntityOnMapComponent:11
|
drawOnMap |
drawOnMap()
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:37
|
Returns :
any
|
ngOnChanges | ||||||
ngOnChanges(changes: SimpleChanges)
|
||||||
Inherited from
EntityOnMapComponent
|
||||||
Defined in
EntityOnMapComponent:30
|
||||||
Parameters :
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:53
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:20
|
Returns :
void
|
removeFromMap |
removeFromMap()
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:42
|
Returns :
any
|
updateOnMap |
updateOnMap()
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:47
|
Returns :
any
|
Protected dataSources |
Type : any
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:15
|
Protected selfPrimitive |
Type : any
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:13
|
Protected selfPrimitiveIsDraw |
Type : boolean
|
Inherited from
EntityOnMapComponent
|
Defined in
EntityOnMapComponent:14
|
import { Component } from '@angular/core';
import { PolygonDrawerService } from '../../services/drawers/polygon-drawer/polygon-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 polygon implementation.
* The ac-label element must be a child of ac-map element.
* _Set `height` prop for performance enhancement_
* The properties of props are the same as the properties of Entity and PolygonGraphics:
* + https://cesiumjs.org/Cesium/Build/Documentation/Entity.html
* + https://cesiumjs.org/Cesium/Build/Documentation/PolygonGraphics.html
*
* __Usage:__
* ```
* <ac-polygon props="{
* hierarchy: polygon.hierarchy,
* material: polygon.material,
* height: polygon.height
* }">
* </ac-polygon>
* ```
*/
@Component({
selector: 'ac-polygon',
template: '',
standalone: false
})
export class AcPolygonComponent extends EntityOnMapComponent {
constructor(polygonDrawer: PolygonDrawerService, mapLayers: MapLayersService) {
super(polygonDrawer, mapLayers);
}
}