瀏覽代碼

Adding to available features within configFromUrl keys for standalone iframe

pull/1131/head
Shawn Scofield 2 年之前
committed by Matthew Petroff
父節點
當前提交
d39a61e1be
共有 1 個檔案被更改,包括 30 行新增6 行删除
  1. +30
    -6
      src/standalone/standalone.js

+ 30
- 6
src/standalone/standalone.js 查看文件

@@ -32,16 +32,40 @@ function parseURLParameters() {
if (value == '')
continue; // Skip options with empty values in URL config
switch(option) {
case 'hfov': case 'pitch': case 'yaw': case 'haov': case 'vaov':
case 'minHfov': case 'maxHfov': case 'minPitch': case 'maxPitch':
case 'minYaw': case 'maxYaw': case 'vOffset': case 'autoRotate':
case 'hfov':
case 'pitch':
case 'yaw':
case 'haov':
case 'vaov':
case 'minHfov':
case 'maxHfov':
case 'minPitch':
case 'maxPitch':
case 'minYaw':
case 'maxYaw':
case 'vOffset':
case 'autoRotate':
configFromURL[option] = Number(value);
break;
case 'autoLoad': case 'ignoreGPanoXMP':
case 'autoLoad':
case 'ignoreGPanoXMP':
case 'compass':
case 'showFullscreenCtrl':
case 'showZoomCtrl':
case 'keyboardZoom':
case 'mouseZoom':
case 'draggable':
case 'showControls':
configFromURL[option] = JSON.parse(value);
break;
case 'author': case 'title': case 'firstScene': case 'fallback':
case 'preview': case 'panorama': case 'config':
case 'type':
case 'author':
case 'title':
case 'firstScene':
case 'fallback':
case 'preview':
case 'panorama':
case 'config':
configFromURL[option] = decodeURIComponent(value);
break;
default:


Loading…
取消
儲存