EllipsesEditorService
yourself:AngularCesiumWidgetsModule
therefor you must import it. EllipsesEditorService
works together with <ellipses-editor>
component. Therefor you need to create <ellipses-editor>
for each EllipsesEditorService
of course somewhere under <ac-map>
create()
and edit()
methods:create(options?: EllipseEditOptions, eventPriority?: number)
EllipseEditorObservable
edit(center: Cartesian3, majorRadius: number, rotation?: number, minorRadius?: number, options?: EllipseEditOptions, priority?: number)
EllipsesEditorObservable
EllipseEditOptions
:addPointEvent
- Set Cesium event for adding last point, default: LEFT_CLICK
addPointModifier
- Set Cesium event modifier for adding 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
ellipseProps
- Ellipse customisation properties allowDrag
- allow shape drag, default: false
pickConfiguration
- configure pick behaviour with: pick height and width and drill pick limitcircleToEllipseTransformation
- If true the shape will start as circle and only become ellipse after relevant event is fired, default: false
circleToEllipseTransformEvent
- mouse event for transforming to ellipse circleToEllipseTransformEventModifier
- event modifier for transforming to ellipsesetLabelsRenderFn
- 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[]