| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-25 15:09:55 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-22 14:54:14 |
| | | * @LastEditTime: 2024-11-23 21:44:24 |
| | | * @FilePath: \bigScreen\src\hooks\initMap.js |
| | | * @Description: |
| | | * |
| | |
| | | window.$viewer.locationBar.enable = true |
| | | |
| | | window.$viewer.zoomToPosition(new DC.Position( |
| | | 115.1048036679409, |
| | | 27.276835758787513, |
| | | 4000, |
| | | 115.1021, |
| | | 27.2360, |
| | | 5000, |
| | | 0, |
| | | -90, |
| | | -45, |
| | | 0 |
| | | ), () => { |
| | | store.setLoadMap(true) |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-31 10:47:29 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-23 20:28:29 |
| | | * @LastEditTime: 2024-11-23 21:28:36 |
| | | * @FilePath: \bigScreen\src\pages\layout\components\scomponents\layersControl.vue |
| | | * @Description: |
| | | * |
| | |
| | | |
| | | // }) |
| | | |
| | | |
| | | |
| | | window.addTileLayers[item.layerName] = item.urlData.map(i => { |
| | | let tile = new DC.Tileset(i.url, { |
| | | maximumMemoryUsage: 256, |
| | | maximumScreenSpaceError: 4, |
| | | maximumScreenSpaceError: 2, |
| | | skipLevels: 5, |
| | | skipLevelOfDetail: true, |
| | | skipScreenSpaceErrorFactor: 128 |
| | |
| | | } else { |
| | | window.addTileLayers[item.layerName].show = true |
| | | } |
| | | // 飞到园区范围 |
| | | window.$viewer.flyTo(addTileLayers[item.layerName]) |
| | | // console.log('flyToyqfw********2222222222*******************************', addTileLayers[item.layerName]) |
| | | } else if (item.subType == 'geojsonPipe') { |
| | | if (!window.addTileLayers[item.layerName]) { |
| | | window.addTileLayers[item.layerName] = new DC.VectorLayer(item.layerName) |