diff --git a/src/views/demo/workmanagement/flightannotation/index.vue b/src/views/demo/workmanagement/flightannotation/index.vue index fbf5d2f..31703ca 100644 --- a/src/views/demo/workmanagement/flightannotation/index.vue +++ b/src/views/demo/workmanagement/flightannotation/index.vue @@ -18,6 +18,7 @@ @setNowShowAnnotationData="setNowShowAnnotationData" @setAllAnnotationData="setAllAnnotationData" @deleteAnnotation="deleteAnnotation" + @treeDataShowOrHide="treeDataShowOrHide" /> @@ -29,6 +30,7 @@ :nowShowAnnotationData="nowShowAnnotationData" @setNowShowAnnotationData="setNowShowAnnotationData" @setAllAnnotationData="setAllAnnotationData" + :treeDataShowOrHideList="treeDataShowOrHideList" /> @@ -154,6 +156,12 @@ }); } + // 项目级别的显示或者隐藏 + const treeDataShowOrHideList = ref([]); + function treeDataShowOrHide(value) { + treeDataShowOrHideList.value = value; + } + // 移动位置 function handlerLocation(position) { pathMapRef.value.handlerLocation([position.lng, position.lat]); diff --git a/src/views/demo/workmanagement/flightannotation/pathAnnotationInfo.vue b/src/views/demo/workmanagement/flightannotation/pathAnnotationInfo.vue index d505d34..45fa2a1 100644 --- a/src/views/demo/workmanagement/flightannotation/pathAnnotationInfo.vue +++ b/src/views/demo/workmanagement/flightannotation/pathAnnotationInfo.vue @@ -433,8 +433,8 @@ // 移动到中心位置 function handlerLocation() { emits('handlerLocation', { - lng: parseFloat(props.nowShowAnnotationData.coordinates[0]), - lat: parseFloat(props.nowShowAnnotationData.coordinates[1]), + lng: parseFloat(props.nowShowAnnotationData.properties.centerPoint[0]), + lat: parseFloat(props.nowShowAnnotationData.properties.centerPoint[1]), }); } // 删除此标注 @@ -507,9 +507,6 @@ heightlist.push(item[2]); }); heightDiff.value = (Math.max(...heightlist) - Math.min(...heightlist)).toFixed(2); - console.log(horizontalArea.value); - console.log(horizontalPerimeter.value); - console.log(heightDiff.value); } } defineExpose({ diff --git a/src/views/demo/workmanagement/flightannotation/pathLeftMenu.vue b/src/views/demo/workmanagement/flightannotation/pathLeftMenu.vue index 8a96846..db83ab2 100644 --- a/src/views/demo/workmanagement/flightannotation/pathLeftMenu.vue +++ b/src/views/demo/workmanagement/flightannotation/pathLeftMenu.vue @@ -45,11 +45,19 @@ style="color: #ffffff; font-size: 16px" /> -