projects/angular-cesium/src/lib/angular-cesium/components/ac-polyline/ac-polyline.component.ts
This is a polyline implementation. The ac-label element must be a child of ac-map element. The properties of props are the same as the properties of Polyline Primitive:
Usage:
Example :<ac-polyline [props]="{
position: position,
text: 'labelText',
font: '30px sans-serif'
color: Color.GREEN
}">;
</ac-polyline>
selector | ac-polyline |
Properties |
|
Methods |
Inputs |
constructor(polylineDrawer: PolylineDrawerService, 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 { MapLayersService } from '../../services/map-layers/map-layers.service';
import { PolylineDrawerService } from '../../services/drawers/polyline-drawer/polyline-drawer.service';
/**
* This is a polyline implementation.
* The ac-label element must be a child of ac-map element.
* The properties of props are the same as the properties of Polyline Primitive:
* + https://cesiumjs.org/Cesium/Build/Documentation/Polyline.html
*
* __Usage:__
* ```
* <ac-polyline [props]="{
* position: position,
* text: 'labelText',
* font: '30px sans-serif'
* color: Color.GREEN
* }">;
* </ac-polyline>
* ```
*/
@Component({
selector: 'ac-polyline',
template: '',
standalone: false
})
export class AcPolylineComponent extends EntityOnMapComponent {
constructor(polylineDrawer: PolylineDrawerService, mapLayers: MapLayersService) {
super(polylineDrawer, mapLayers);
}
}