File

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

Description

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:

 *  <ac-polyline [props]="{
 *    position: position,
 *    text: 'labelText',
 *    font: '30px sans-serif'
 *    color: Cesium.Color.GREEN
 *  }">;
 *  </ac-polyline>
 *

Extends

EntityOnMapComponent

Metadata

selector ac-polyline

Index

Properties
Methods
Inputs

Constructor

constructor(polylineDrawer: PolylineDrawerService, mapLayers: MapLayersService)
Parameters :
Name Type Optional
polylineDrawer PolylineDrawerService 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 { 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: Cesium.Color.GREEN
 *  }">;
 *  </ac-polyline>
 *  ```
 */

@Component({
  selector: 'ac-polyline',
  template: '',
})
export class AcPolylineComponent extends EntityOnMapComponent {

  constructor(polylineDrawer: PolylineDrawerService, mapLayers: MapLayersService) {
    super(polylineDrawer, mapLayers);
  }
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""