| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-31 10:47:29 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2025-01-08 17:28:02 |
| | | * @LastEditTime: 2025-01-12 00:15:34 |
| | | * @FilePath: \bigScreen\src\pages\map\components\scomponents\layersControl.vue |
| | | * @Description: |
| | | * |
| | |
| | | subType: '3Dtile', |
| | | urlData: [ |
| | | { |
| | | url: '/3Dtile/rcmx/tile_01/tileset.json', |
| | | label: 'tile_01' |
| | | url: '/3Dtile/rcmx/tiles_01/tileset.json', |
| | | label: 'tiles_01' |
| | | }, |
| | | { |
| | | url: '/3Dtile/rcmx/tile_02/tileset.json', |
| | | label: 'tile_02' |
| | | url: '/3Dtile/rcmx/tiles_02/tileset.json', |
| | | label: 'tiles_02' |
| | | }, |
| | | ], |
| | | layerName: 'hgyq' |
| | |
| | | layerName: 'ql' |
| | | }, |
| | | |
| | | // { |
| | | // parentId: '3', |
| | | // id: '3-9', |
| | | // label: '雨水管网', |
| | | // type: 'layer', |
| | | // subType: 'geojsonPipe', |
| | | // layerName: 'ysgw', |
| | | // source: ysgw, |
| | | // color: DC.Color.CYAN.withAlpha(0.9), |
| | | // height: 48, |
| | | // }, |
| | | { |
| | | parentId: '3', |
| | | id: '3-9', |
| | | label: '雨水管网', |
| | | type: 'layer', |
| | | subType: 'geojsonPipe', |
| | | layerName: 'ysgw', |
| | | source: ysgw, |
| | | color: DC.Color.CYAN.withAlpha(0.9), |
| | | height: 30, |
| | | }, |
| | | |
| | | { |
| | | parentId: '3', |
| | |
| | | } |
| | | return positions |
| | | } |
| | | item.source.geometries.forEach(i => { |
| | | |
| | | item.source.features.forEach(i => { |
| | | let polylineVolume = new DC.PolylineVolume( |
| | | i.coordinates.map(d => [d[0], d[1], item.height].join(',')).join(';'), |
| | | i.geometry.coordinates.map(d => [d[0], d[1], item.height].join(',')).join(';'), |
| | | computeCircle(1.6) |
| | | ) |
| | | |
| | | if ('properties' in i && i.properties?.RefName.indexOf('拟建') != -1) { |
| | | if ('RefName' in i.properties && i.properties.RefName.indexOf('拟建') != -1) { |
| | | polylineVolume.setStyle({ |
| | | material: DC.Color.fromBytes(255, 0, 0, 230) |
| | | }) |
| | |
| | | // 飞到园区范围 |
| | | const flyToyqfw = () => { |
| | | window.$viewer.zoomToPosition(new DC.Position( |
| | | 115.6050, |
| | | 29.7420, |
| | | 6000, |
| | | 115.6080, |
| | | 29.7880, |
| | | 3000, |
| | | 0, |
| | | -45, |
| | | 0 |