修改三维驾驶界面

This commit is contained in:
sunzhenyu 2021-07-29 09:36:57 +08:00
parent a98fa35a45
commit 7b55ce33b8
2 changed files with 7 additions and 5 deletions

View File

@ -57,9 +57,11 @@ export function JLmapDriving(dom,data,mapId,storemod,translation,routegroup,proj
renderer.domElement.style.top = '0'; renderer.domElement.style.top = '0';
var renderercctv = new THREE.WebGLRenderer(); var renderercctv = new THREE.WebGLRenderer();
renderercctv.setSize(dom.offsetWidth*0.2, dom.offsetHeight*0.2);
// renderercctv.setSize(dom.offsetWidth*0.2, dom.offsetHeight*0.2);
renderercctv.setSize(500, 333);
renderercctv.domElement.style.position = 'absolute'; renderercctv.domElement.style.position = 'absolute';
renderercctv.domElement.style.top = '0'; renderercctv.domElement.style.bottom = '0';
document.getElementById('jlsimulation').appendChild(renderer.domElement); document.getElementById('jlsimulation').appendChild(renderer.domElement);
document.getElementById('jlcctv').appendChild(renderercctv.domElement); document.getElementById('jlcctv').appendChild(renderercctv.domElement);

View File

@ -438,10 +438,10 @@ export default {
.jlmap3cctv{ .jlmap3cctv{
float: left; float: left;
left: 0; left: 0;
top:0; bottom:333px;
//left:20%; //left:20%;
width: 20%; width:500px;
height: 20%; height:333px;
position:absolute; position:absolute;
z-index: -1; z-index: -1;
} }