zouyaoji / vue-cesium

🎉 Vue 3.x components for CesiumJS.
https://zouyaoji.top/vue-cesium
MIT License
1.43k stars 312 forks source link

[Feature Request] How to edit vc-drawing (manually add/edit/remove nodes) => save drawing/export/load #499

Open romain974 opened 6 months ago

romain974 commented 6 months ago

Existing Component

Yes

Component Name

vc-drawing

Description

I use vc-drawing, but need some interaction: I wan't to allow my users to save their drawing to geojson, and upload geojson to be able to modify. I'm unable to find how to do this. Any clues ? Seems faisible, but i reaaly don't undestand how the drawing component works (no datasource?). Any help would be appreciated, and I can in return push my code to help improve vue-cesium.

zouyaoji commented 5 months ago

In terms of editing, obtain the renderDatas for each drawing component, and exporting involves exporting this array as well. Please refer to https://github.com/zouyaoji/vue-cesium/discussions/435