智慧园区前端大屏
shuishen
2024-11-23 6c4747985ce016501a0bdd2c1fc0ae987b78bdb2
倾斜加载调整
2 files modified
19 ■■■■■ changed files
src/hooks/initMap.js 10 ●●●● patch | view | raw | blame | history
src/pages/layout/components/scomponents/layersControl.vue 9 ●●●● patch | view | raw | blame | history
src/hooks/initMap.js
@@ -2,7 +2,7 @@
 * @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: 
 * 
@@ -33,11 +33,11 @@
        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)
src/pages/layout/components/scomponents/layersControl.vue
@@ -2,7 +2,7 @@
 * @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:
 *
@@ -640,12 +640,10 @@
          // })
          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
@@ -726,9 +724,6 @@
        } 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)