| | |
| | | !layerParams.addNest && |
| | | !layerParams.editNest && |
| | | !layerParams.addFolder && |
| | | !layerParams.editFolder && |
| | | activeType !== '2' |
| | | " |
| | | @update:coverData="handleCoverDataUpdate" |
| | |
| | | viewer.entities.removeAll(); |
| | | layerParams.value.editDetailData = val; |
| | | drawPolygonExample.editThePatch(true); |
| | | drawPolygonExample.drawTheArea(true); |
| | | const positions = parseGeoDataToPositions(val.geo_data, val.altitude); |
| | | if (positions.length < 3) return; // 少于3个点无法构成多边形 |
| | | drawPolygonExample.drawTheArea(true); |
| | | drawPolygonExample.initPolygon(viewer, positions, true); |
| | | }; |
| | | // 编辑文件夹 |
| | |
| | | |
| | | // 初始化绘制工具实例 |
| | | const drawPolygonExample = new DrawPolygon(); |
| | | |
| | | // 地图初始化 |
| | | // 地图初始化 |
| | | const initMap = () => { |
| | | publicCesiumInstance = new PublicCesium({ |