This commit is contained in:
Cc 2024-11-01 14:35:20 +08:00
parent 10e9ecc4a7
commit 7955055c17
2 changed files with 8 additions and 3 deletions

View File

@ -406,11 +406,16 @@ function addLine(type) {
} }
const isShow = ref(false) const isShow = ref(false)
function elevationPolygon(){ function elevationPolygon(){
if(!isShow.value){
mapdata.getfindSkeleton().then(res=>{ mapdata.getfindSkeleton().then(res=>{
isShow.value = !isShow.value isShow.value = !isShow.value
$ldMap.elevationData(isShow.value,res.data); $ldMap.elevationData(isShow.value,res.data);
}) })
}else{
isShow.value = !isShow.value
$ldMap.elevationData(isShow.value,[]);
}
} }

File diff suppressed because one or more lines are too long