| | |
| | | curPolygonEntity.polyline = { |
| | | width: 2, |
| | | material: Cesium.Color.WHITE, |
| | | clampToGround: false, |
| | | clampToGround: true, |
| | | }; |
| | | |
| | | curPolygonEntity.polyline.positions = new Cesium.CallbackProperty(function () { |
| | |
| | | viewInstance.value.removeMouseHandler('drawCustomPolygon'); |
| | | } |
| | | |
| | | const emit = defineEmits(['upDateDrawState']); |
| | | const emit = defineEmits(['upDateDrawState',]); |
| | | |
| | | function updatePolygon() { |
| | | let polygon = savePolygonPosition.reduce((pre, cur) => { |
| | |
| | | return pre; |
| | | }, []); |
| | | polygon.push(polygon[0]); |
| | | console.log('绘制', `POLYGON((${polygon.join(',')}))`); |
| | | |
| | | // 接口 |
| | | sdfwUpdate({ |
| | | ids: selectionIds.value, |
| | |
| | | cancel() |
| | | }) |
| | | } |
| | | |
| | | |
| | | function cancel() { |
| | | remove(); |
| | |
| | | background: rgba(0, 0, 0, 0.6); |
| | | white-space: nowrap; |
| | | border-radius: 4px; |
| | | |
| | | pointer-events: none; |
| | | &::after { |
| | | content: ''; |
| | | position: absolute; |