| | |
| | | * @param { 单点航线 相关功能} url |
| | | */ |
| | | export const initPointWayline = (url) => { |
| | | const { viewer } = cesiumOperation(); |
| | | |
| | | let viewer = window.$viewer; |
| | | |
| | | // 解析kmz文件 |
| | | const parsingFiles = async (url) => { |
| | |
| | | }; |
| | | // 在地图上画线 |
| | | const drawWayline = (xmlJson) => { |
| | | const points = xmlJson?.['Folder']?.['Placemark'] |
| | | const points = xmlJson?.['Folder']?.['Placemark']; |
| | | getPositionsHeight(points, viewer, 100).then((result) => { |
| | | positions = result.map((item) => { |
| | | return Cesium.Cartesian3.fromDegrees( |
| | | Number(item.longitude), |
| | | Number(item.latitude), |
| | | item.FinalHeight, |
| | | ) |
| | | }); |
| | | result.forEach((item, index) => { |
| | | let setting = {}; |
| | | }); |
| | | }); |
| | | }; |
| | | }; |