File

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

Description

This is a polyline primitive 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-primitive-desc props="{
 *      width : polyline.width,
 *      positions: polyline.positions,
 *      material: polyline.material
 *    }">
 *    </ac-polyline-primitive-desc>
 *

Extends

BasicDesc

Metadata

providers { provide: BasicDesc, useExisting: forwardRef(() => AcPolylinePrimitiveDescComponent) }
selector ac-polyline-primitive-desc

Constructor

constructor(polylinePrimitiveDrawerService: PolylinePrimitiveDrawerService, layerService: LayerService, computationCache: ComputationCache, cesiumProperties: CesiumProperties)
Parameters :
Name Type Optional
polylinePrimitiveDrawerService PolylinePrimitiveDrawerService No
layerService LayerService No
computationCache ComputationCache No
cesiumProperties CesiumProperties No
import { Component, forwardRef } from '@angular/core';
import { BasicDesc } from '../../services/basic-desc/basic-desc.service';
import { LayerService } from '../../services/layer-service/layer-service.service';
import { ComputationCache } from '../../services/computation-cache/computation-cache.service';
import { CesiumProperties } from '../../services/cesium-properties/cesium-properties.service';
import { PolylinePrimitiveDrawerService } from '../../services/drawers/polyline-primitive-drawer/polyline-primitive-drawer.service';

/**
 *  This is a polyline primitive 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-primitive-desc props="{
 *      width : polyline.width,
 *      positions: polyline.positions,
 *      material: polyline.material
 *    }">
 *    </ac-polyline-primitive-desc>
 * ```
 */
@Component({
  selector: 'ac-polyline-primitive-desc',
  template: '',
  providers: [{provide: BasicDesc, useExisting: forwardRef(() => AcPolylinePrimitiveDescComponent)}],
})
export class AcPolylinePrimitiveDescComponent extends BasicDesc {

  constructor(polylinePrimitiveDrawerService: PolylinePrimitiveDrawerService, layerService: LayerService,
              computationCache: ComputationCache, cesiumProperties: CesiumProperties) {
    super(polylinePrimitiveDrawerService, layerService, computationCache, cesiumProperties);
  }
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""