liuyg
2021-12-24 4102cd81b143bd83ef3c2e1f85311075e2e2d7e2
src/components/map/index.vue
@@ -173,14 +173,14 @@
            const tilesetLayer = new that.DC.TilesetLayer('tilesetLayer')
            viewer.addLayer(tilesetLayer)
            const tileset = new that.DC.Tileset(
                'http://data.mars3d.cn/3dtiles/max-shihua/tileset.json'
                'http://data.mars3d.cn/3dtiles/max-shihua/tileset.json',
                {
                    luminanceAtZenith: 0.5
                }
            )
            tilesetLayer.addOverlay(tileset)
            viewer.flyTo(tileset)
            tileset.on(that.DC.MouseEventType.CLICK, e => {
                console.log(e, 123333)
                // that.popupFlag = true
                viewer.scene.globe.depthTestAgainstTerrain = false
                that.$store.commit('CLEAR_ALL', null)
@@ -209,7 +209,6 @@
            const wallLayer = new that.DC.VectorLayer('wallLayer')
            viewer.addLayer(wallLayer)
            var arr = [
                [115.87597219, 28.74628526, 100],
                [115.87556558, 28.74415792, 100],
@@ -224,13 +223,10 @@
                [115.86609240, 28.74642593, 100],
                [115.87597219, 28.74628526, 100]
            ]
            arr.forEach(item => {
                item = item.join(',')
            })
            arr = arr.join(';')
            const wall = new that.DC.Wall(
                arr
            )