PolylineEditorService
yourself:AngularCesiumWidgetsModule
therefor you must import it. PolylinesEditorService
works together with <polylines-editor>
component. Therefor you need to create <polylines-editor>
for each PolylineEditorService
And of course somewhere under <ac-map>
create()
and edit()
methods:create(options?: PolylineEditOptions, eventPriority?: number)
PolylineEditorObservable
edit(positions: Cartesian3[], options?: PolylineEditOptions, priority?: number)
PolylineEditorObservable
PolylineEditOptions
:addPointEvent
- Set Cesium event for adding last point, default: LEFT_CLICK
addPointModifier
- Set Cesium event modifier for adding point, default: none
addLastPointEvent
- Set Cesium event for adding the final point, default: DOUBLE_CLICK
addLastPointModifier
- Set Cesium event modifier for adding last point, default: none
removePointEvent
- Set Cesium event for removing a point, default: RIGHT_CLICK
removePointModifier
- Set Cesium event modifier for removing a point, default: none
dragPointModifier
- Set Cesium event modifier for draging a point, default: LEFT_DRAG
dragPointModifier
- Set Cesium event modifier for removing a point, default: none
pointProps
- Point customisation properties polylineProps
- Polyline customisation properties allowDrag
- allow shape drag, default: false
pickConfiguration
- configure pick behaviour with: pick height and width and drill pick limitmaximumNumberOfPoints
- after maximum point reached change to edit mode clampHeightTo3D
- if the polyline should clamp to 3D entities
according to clampHeightTo3DOptionsclampHeightTo3DOptions
- Configuration for clamping to 3D clampToTerrain
- if to clamp to terrain. default: false
- clamps to 3dTilesclampMostDetailed
- after editing the shape the positions height will be fixed with clampToHeight() for 3dTiles and sampleTerrain() for terrain, default: true
clampToHeightPickWidth
- clampToHeight() width in meters.setLabelsRenderFn
- receives a callback that is called every time the shape is redrawn (except when the shape is being dragged). The callback is called with the last shape state and with an array of the current labels.LabelProps[]