|
@@ -94,19 +94,38 @@ export default {
|
|
|
window.sdkInstance.changeMode('panorama');
|
|
|
let player = document.getElementById('player')
|
|
|
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)
|
|
|
} else {
|
|
|
setTimeout(() => {
|
|
|
- window.sdkInstance.changeMode('floorplan');
|
|
|
+
|
|
|
let mapDom = document.getElementsByClassName("ordinary-map-container")[0];
|
|
|
let style = getComputedStyle(mapDom);
|
|
|
let width = parseFloat(style.width);
|
|
|
let height = parseFloat(style.height);
|
|
|
+ window.renderWidth = width * 1.8;
|
|
|
+ window.renderHeight = height * 1.8;
|
|
|
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')
|
|
|
playersmall.appendChild(element)
|
|
|
- }, 500)
|
|
|
+ setTimeout(() => {
|
|
|
+ window.sdkInstance.changeMode('floorplan');
|
|
|
+ })
|
|
|
+ })
|
|
|
sessionStorage.setItem('3dMode', 0)
|
|
|
}
|
|
|
|