projects/angular-cesium/src/lib/angular-cesium/components/ac-ellipse/ac-ellipse.component.ts
This is an ellipse implementation. The element must be a child of ac-map element. The properties of props are the same as the properties of Entity and EllipseGraphics:
Usage:
Example :<ac-ellipse [props]="{
position: position,
semiMajorAxis:40000.0,
semiMinorAxis:25000.0,
rotation : 0.785398
}">
</ac-ellipse>
selector | ac-ellipse |
Properties |
|
Methods |
Inputs |
constructor(ellipseDrawer: EllipseDrawerService, 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 { EntityOnMapComponent } from '../../services/entity-on-map/entity-on-map.component';
import { EllipseDrawerService } from '../../services/drawers/ellipse-drawer/ellipse-drawer.service';
import { MapLayersService } from '../../services/map-layers/map-layers.service';
/**
* This is an ellipse implementation.
* The element must be a child of ac-map element.
* The properties of props are the same as the properties of Entity and EllipseGraphics:
* + https://cesiumjs.org/Cesium/Build/Documentation/Entity.html
* + https://cesiumjs.org/Cesium/Build/Documentation/EllipseGraphics.html
*
* __Usage:__
* ```
* <ac-ellipse [props]="{
* position: position,
* semiMajorAxis:40000.0,
* semiMinorAxis:25000.0,
* rotation : 0.785398
* }">
* </ac-ellipse>
* ```
*/
@Component({
selector: 'ac-ellipse',
template: '',
standalone: false
})
export class AcEllipseComponent extends EntityOnMapComponent {
constructor(ellipseDrawer: EllipseDrawerService, mapLayers: MapLayersService) {
super(ellipseDrawer, mapLayers);
}
}