2 files modified
2 files added
| | |
| | | * @Author: husq 931347610@qq.com |
| | | * @Date: 2023-09-13 18:21:08 |
| | | * @LastEditors: husq 931347610@qq.com |
| | | * @LastEditTime: 2023-10-06 13:39:12 |
| | | * @LastEditTime: 2023-10-08 17:33:16 |
| | | * @FilePath: \Cloud-API-Demo-Web\src\pages\page-web\index.vue |
| | | * @Description: |
| | | * |
| | |
| | | message.error(result.message) |
| | | } |
| | | } |
| | | onMounted(() => { |
| | | onSubmit() |
| | | }) |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | |
| | | |
| | | cartesianArr.push(entity.position._value) |
| | | } |
| | | |
| | | console.log(cartesianArr, 'cartesianArr') |
| | | const lineEntity = global.$viewer.entities.add({ |
| | | name: 'entityLine', |
| | | polyline: { |
| | | positions: cartesianArr, |
| | | positions: Cesium.Cartesian3.fromDegreesArray(cartesianArr), |
| | | width: 10, |
| | | material: new Cesium.PolylineArrowMaterialProperty(Cesium.Color.CYAN), |
| | | clampToGround: false, // 关闭贴地效果,保留高度 |
| | | }, |
| | | }) |
| | | |