mirror of
https://github.com/ethan-zf/cesium-plot-js.git
synced 2025-06-23 19:17:29 +00:00
'修复因双击编辑控制点导致地图无法拖动问题'
This commit is contained in:
parent
b03c6d22f6
commit
a2c2997274
@ -131,6 +131,9 @@ export default class Base {
|
||||
this.disableDrag();
|
||||
// Trigger 'drawEnd' and return the geometry shape points when exiting the edit mode.
|
||||
this.eventDispatcher.dispatchEvent('editEnd', this.getPoints());
|
||||
|
||||
// Fix the issue of map can`t to be dragged due to double clicking control points
|
||||
this.viewer.scene.screenSpaceCameraController.enableRotate = true;
|
||||
}
|
||||
} else if (this.state === 'static') {
|
||||
//When drawing multiple shapes, the click events for all shapes are triggered. Only when hitting a completed shape should it enter editing mode.
|
||||
|
Loading…
Reference in New Issue
Block a user