| | |
| | | <template> |
| | | <div id="deviceJobDetailsMap" class="ztzf-cesium"></div> |
| | | <div id="deviceJobDetailsMap" class="command-cesium"></div> |
| | | </template> |
| | | <script setup> |
| | | import { flyVisual } from '@/utils/cesium/mapUtil' |
| | | import { flyVisual } from '@ztzf/utils' |
| | | import _ from 'lodash' |
| | | |
| | | import * as Cesium from 'cesium' |
| | |
| | | renderOrthophoto() |
| | | }) |
| | | } |
| | | // 解析经纬度 |
| | | function getLonLat(str) { |
| | | if (!str) return [] |
| | | return str |
| | | .replace('POLYGON((', '') |
| | | .replace('))', '') |
| | | .split(',') |
| | | .map(pair => { |
| | | const [lon, lat] = pair.trim().split(' ').map(Number) |
| | | return [lon, lat] |
| | | }) |
| | | } |
| | | |
| | | // 渲染正射 |
| | | function renderOrthophoto() { |
| | | zsList.value.forEach((item, index) => { |