| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2025-04-15 22:41:40 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2025-04-17 14:30:08 |
| | | * @LastEditTime: 2025-04-17 15:05:32 |
| | | * @FilePath: \command-center-dashboard\src\hooks\useSingleDroneMap\useSingleDroneMap.js |
| | | * @Description: |
| | | * |
| | |
| | | |
| | | let clickedEntities = viewer?.scene.drillPick(click.position).map(item => item.id) |
| | | |
| | | console.log(clickedEntities, 1111111) |
| | | |
| | | if (!clickedEntities?.length) return |
| | | |
| | | currentEntity = findEntityByType(clickedEntities, 'single-drone-event') |
| | | |
| | | console.log(currentEntity, 1111111) |
| | | |
| | | removeLabel() |
| | | |
| | |
| | | const labelBoxRender = () => { |
| | | if (!currentEntity) return |
| | | let dom = document.querySelector('#mapPopUpBox') |
| | | |
| | | console.log(currentEntity.properties.customData, 4444) |
| | | |
| | | if (!dom) { |
| | | dom = getLabelDom(currentEntity.properties.customData._value.data) |