| | |
| | | editDetailData: null, |
| | | total_count: 0, |
| | | total_area: 0, |
| | | polygonPosition:null, |
| | | }); |
| | | provide('layerParams', layerParams); |
| | | const handleClick = tab => { |
| | |
| | | activeName.value = clickedTab.name; |
| | | }; |
| | | |
| | | |
| | | |
| | | let tbJwdList = []; |
| | | const selectDataList = ref([]); |
| | | // 编辑区域 |
| | | // 编辑围栏区域 |
| | | const handleEdit = val => { |
| | | console.log('编辑数据', val); |
| | | layerParams.value.editDetailData = val; |
| | | drawPolygonExample.editThePatch(true); |
| | | const positions = parseGeoDataToPositions(val.geo_data, val.altitude); |
| | |
| | | } |
| | | let polygon = curPolygonPosition.map(item => [item?.lng, item?.lat]); |
| | | polygon.push([curPolygonPosition[0]?.lng, curPolygonPosition[0]?.lat]); |
| | | console.log('绘制的多边形顶点坐标(Cartesian3):', polygon); |
| | | |
| | | console.log('转换后的经纬度坐标:', curPolygonPosition); |
| | | // console.log('绘制的多边形顶点坐标(Cartesian3):', polygon); |
| | | layerParams.value.polygonPosition = polygon |
| | | console.log('polygon', layerParams.value.polygonPosition); |
| | | }; |
| | | const throttleLoadPlanarRoute = throttle(loadPlanarRoute, 200); |
| | | drawPolygonExample.subscribe('getPolygonPositions', data => { |