智慧园区前端大屏
shuishen
2024-11-20 49c8b89710f806e3d4e50e86fb90a48baa54af01
src/pages/layout/components/scomponents/layersControl.vue
@@ -106,6 +106,18 @@
        url: VITE_APP_BASE + 'mx/tile_02/tileset.json',
        label: 'tile_02'
      },
      {
        url: VITE_APP_BASE + 'mx/tile_03/tileset.json',
        label: 'tile_03'
      },
      {
        url: VITE_APP_BASE + 'mx/tile_04/tileset.json',
        label: 'tile_04'
      },
      {
        url: VITE_APP_BASE + 'mx/tile_05/tileset.json',
        label: 'tile_05'
      },
    ],
    layerName: 'hgyq'
  },
@@ -173,7 +185,7 @@
            layerName: 'gsgw',
            source: gsgw,
            color: DC.Color.BLUE,
            height: 5,
            height: 65,
          },
          {
            id: '3-3-2',
@@ -183,7 +195,7 @@
            layerName: 'wsgw',
            source: wsgw,
            color: DC.Color.BLACK,
            height: 10,
            height: 68,
          },
          {
            id: '3-3-3',
@@ -193,7 +205,7 @@
            layerName: 'rqgw',
            source: rqgw,
            color: DC.Color.RED,
            height: 15,
            height: 71,
          },
          {
            id: '3-3-4',
@@ -203,7 +215,7 @@
            layerName: 'ysgw',
            source: ysgw,
            color: DC.Color.CYAN,
            height: 20,
            height: 75,
          },
        ]
      },
@@ -489,7 +501,7 @@
          addTileLayers[item.layerName] = new DC.VectorLayer(item.layerName)
          window.$viewer.addLayer(addTileLayers[item.layerName])
          function computeCircle(radius) {
          function computeCircle (radius) {
            var positions = []
            for (var i = 0; i < 360; i++) {
              var radians = DC.Math.toRadians(i)
@@ -532,7 +544,7 @@
  })
}
function findObjectById(data, id) {
function findObjectById (data, id) {
  // 遍历数据数组
  for (let i = 0; i < data.length; i++) {
    const item = data[i]