File

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

Description

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:

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

Extends

EntityOnMapComponent

Metadata

selector ac-polygon

Index

Properties
Methods
Inputs

Constructor

constructor(polygonDrawer: PolygonDrawerService, mapLayers: MapLayersService)
Parameters :
Name Type Optional
polygonDrawer PolygonDrawerService No
mapLayers MapLayersService No

Inputs

props

Type : any

Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:10

Methods

drawOnMap
drawOnMap()
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:36
Returns : any
ngOnChanges
ngOnChanges(changes: SimpleChanges)
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:29
Parameters :
Name Type Optional
changes SimpleChanges No
Returns : void
ngOnDestroy
ngOnDestroy()
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:52
Returns : void
ngOnInit
ngOnInit()
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:19
Returns : void
removeFromMap
removeFromMap()
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:41
Returns : any
updateOnMap
updateOnMap()
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:46
Returns : any

Properties

Protected dataSources
dataSources: any
Type : any
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:14
Protected selfPrimitive
selfPrimitive: any
Type : any
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:12
Protected selfPrimitiveIsDraw
selfPrimitiveIsDraw: boolean
Type : boolean
Inherited from EntityOnMapComponent
Defined in EntityOnMapComponent:13
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: '',
})
export class AcPolygonComponent extends EntityOnMapComponent {
  constructor(polygonDrawer: PolygonDrawerService, mapLayers: MapLayersService) {
    super(polygonDrawer, mapLayers);
  }
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""