|
@@ -94,19 +94,38 @@ export default {
|
|
window.sdkInstance.changeMode('panorama');
|
|
window.sdkInstance.changeMode('panorama');
|
|
let player = document.getElementById('player')
|
|
let player = document.getElementById('player')
|
|
player.appendChild(element)
|
|
player.appendChild(element)
|
|
- }, 500)
|
|
|
|
|
|
+ element.style.width = window.innderWidth+'px';
|
|
|
|
+ element.style.height = window.innderHeight+'px';
|
|
|
|
+ window.renderWidth = window.innderWidth;
|
|
|
|
+ window.renderHeight = window.innderHeight;
|
|
|
|
+ element.width = (window.innderWidth * 2);
|
|
|
|
+ element.height = (window.innderHeight * 2);
|
|
|
|
+ element.style.marginLeft = '0px';
|
|
|
|
+ element.style.marginTop = '0px';
|
|
|
|
+ })
|
|
sessionStorage.setItem('3dMode', 1)
|
|
sessionStorage.setItem('3dMode', 1)
|
|
} else {
|
|
} else {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- window.sdkInstance.changeMode('floorplan');
|
|
|
|
|
|
+
|
|
let mapDom = document.getElementsByClassName("ordinary-map-container")[0];
|
|
let mapDom = document.getElementsByClassName("ordinary-map-container")[0];
|
|
let style = getComputedStyle(mapDom);
|
|
let style = getComputedStyle(mapDom);
|
|
let width = parseFloat(style.width);
|
|
let width = parseFloat(style.width);
|
|
let height = parseFloat(style.height);
|
|
let height = parseFloat(style.height);
|
|
|
|
+ window.renderWidth = width * 1.8;
|
|
|
|
+ window.renderHeight = height * 1.8;
|
|
window.sdkInstance.sceneRenderer.updateScreenSize(width, height);
|
|
window.sdkInstance.sceneRenderer.updateScreenSize(width, height);
|
|
|
|
+ element.width = (width * 2) * 1.8;
|
|
|
|
+ element.height = (height * 2) * 1.8;
|
|
|
|
+ element.style.width = (width * 1.8)+'px';
|
|
|
|
+ element.style.height = (height * 1.8)+'px';
|
|
|
|
+ element.style.marginLeft = ((width - (width * 1.8)) / 2) + 'px';
|
|
|
|
+ element.style.marginTop = ((height - (height * 1.8)) / 2) + 'px';
|
|
let playersmall = document.getElementById('playersmall')
|
|
let playersmall = document.getElementById('playersmall')
|
|
playersmall.appendChild(element)
|
|
playersmall.appendChild(element)
|
|
- }, 500)
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ window.sdkInstance.changeMode('floorplan');
|
|
|
|
+ })
|
|
|
|
+ })
|
|
sessionStorage.setItem('3dMode', 0)
|
|
sessionStorage.setItem('3dMode', 0)
|
|
}
|
|
}
|
|
|
|
|