| | |
| | | Viewer.camera.flyTo({ |
| | | destination: Cesium.Cartesian3.fromDegrees(wkt.coordinates[1], wkt.coordinates[0], height), |
| | | }); |
| | | } else if (type == '3dml') { |
| | | } else if (type == '3dml' || type == 'fbx' || type == 'ifc' || type == 'rvt') { |
| | | if (this.app.tileset) viewer.scene.primitives.remove(this.app.tileset); |
| | | this.app.tileset = this.createTileset(res); |
| | | var that = this; |
| | |
| | | |
| | | } else { |
| | | var std = data.result |
| | | var val = std.filter((str) => { |
| | | if (str.type == 1 && str.pid == 1) { |
| | | return str; |
| | | } |
| | | if (str.id == 1 && str.pid == 0) { |
| | | return str; |
| | | } |
| | | if (str.type == 1 && str.cnName == '三维地质模型' || str.cnName == '单体模型' || str.cnName == '洞库模型') { |
| | | return str; |
| | | var val = []; |
| | | std.filter((str) => { |
| | | // if (str.type == 1 && str.pid == 1) { |
| | | // return str; |
| | | // } |
| | | // if (str.id == 1 && str.pid == 0) { |
| | | // return str; |
| | | // } |
| | | if (str.type == 1) { |
| | | val.push(str); |
| | | } |
| | | if (str.url != null && str.type == 2 && str.serveType == 'Tileset') { |
| | | return str; |
| | | val.push(str); |
| | | } |
| | | }); |
| | | |