智慧园区前端大屏
shuishen
2025-01-12 0dd5401c7bd5a23c26797f100ba2ac8c2b324af8
src/pages/map/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: 2025-01-08 17:28:02
 * @LastEditTime: 2025-01-12 00:15:34
 * @FilePath: \bigScreen\src\pages\map\components\scomponents\layersControl.vue
 * @Description:
 *
@@ -118,12 +118,12 @@
    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'
@@ -391,17 +391,17 @@
        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',
@@ -854,13 +854,14 @@
            }
            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)
              })
@@ -985,9 +986,9 @@
// 飞到园区范围
const flyToyqfw = () => {
  window.$viewer.zoomToPosition(new DC.Position(
    115.6050,
    29.7420,
    6000,
    115.6080,
    29.7880,
    3000,
    0,
    -45,
    0