| | |
| | | // }) |
| | | |
| | | const tilesetLayer = new that.DC.TilesetLayer('tilesetLayer') |
| | | // tilesetLayer.luminanceAtZenith = 1.8 |
| | | viewer.addLayer(tilesetLayer) |
| | | const tileset = new that.DC.Tileset( |
| | | 'http://data.mars3d.cn/3dtiles/max-shihua/tileset.json', |
| | |
| | | luminanceAtZenith: 0.5 |
| | | } |
| | | ) |
| | | console.log(tilesetLayer, tileset, 7878787) |
| | | |
| | | // luminanceAtZenith |
| | | |
| | | tilesetLayer.addOverlay(tileset) |
| | | viewer.flyTo(tileset) |
| | | // viewer.scene.globe.enableLighting = true |
| | | |
| | | // viewer.scene.light = new that.DC.Namespace.Cesium.DirectionalLight({ // 去除时间原因影响模型颜色 |
| | | // direction: new that.DC.Position(Number(-157), Number(-30), Number(0)) |
| | | // }) |
| | | |
| | | tileset.on(that.DC.MouseEventType.CLICK, e => { |
| | | console.log() |
| | | |
| | | console.log(e) |
| | | // that.popupFlag = true |
| | | |
| | | viewer.scene.globe.depthTestAgainstTerrain = false |
| | | |
| | | that.$store.commit('CLEAR_ALL', null) |
| | |
| | | |
| | | const wallLayer = new that.DC.VectorLayer('wallLayer') |
| | | viewer.addLayer(wallLayer) |
| | | |
| | | var arr = [ |
| | | [115.87597219, 28.74628526, 100], |
| | | [115.87556558, 28.74415792, 100], |
| | |
| | | [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 |
| | | ) |