智慧园区前端大屏
shuishen
2024-11-11 856df58ee56f3c6163bdc938b4fb7c5085ede6b5
src/views/layout/components/scomponents/layersControl.vue
@@ -232,7 +232,7 @@
        layerName: 'gsgw',
        source: gsgw,
        color: DC.Color.BLUE,
        height: 1,
        height: 5,
      },
      {
        id: '6-2',
@@ -242,7 +242,7 @@
        layerName: 'wsgw',
        source: wsgw,
        color: DC.Color.BLACK,
        height: 2,
        height: 10,
      },
      {
        id: '6-3',
@@ -252,7 +252,7 @@
        layerName: 'rqgw',
        source: rqgw,
        color: DC.Color.RED,
        height: 3,
        height: 15,
      },
      {
        id: '6-4',
@@ -262,7 +262,7 @@
        layerName: 'ysgw',
        source: ysgw,
        color: DC.Color.CYAN,
        height: 4,
        height: 20,
      },
    ]
@@ -403,7 +403,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 < 1080; i++) {
              var radians = DC.Math.toRadians(i)
@@ -417,7 +417,7 @@
          item.source.features.forEach(i => {
            let polylineVolume = new DC.PolylineVolume(
              i.geometry.coordinates.map(d => [d[0], d[1], 0.0].join(',')).join(';'),
              i.geometry.coordinates.map(d => [d[0], d[1], item.height].join(',')).join(';'),
              computeCircle(0.3)
            )