瀏覽代碼

Add and document additional standalone URL config parameters.

pull/1131/head
Matthew Petroff 2 年之前
父節點
當前提交
2198c25996
共有 2 個檔案被更改,包括 6 行新增1 行删除
  1. +3
    -1
      doc/url-config-parameters.md
  2. +3
    -0
      src/standalone/standalone.js

+ 3
- 1
doc/url-config-parameters.md 查看文件

@@ -17,4 +17,6 @@ A subset of the JSON configuration file options can be used as URL parameters.
These include `panorama`, `config`, `author`, `title`, `hfov`, `minHfov`, `maxHfov`,
`pitch`, `minPitch`, `maxPitch`, `yaw`, `minYaw`, `maxYaw`,
`haov`, `vaov`, `vOffset`, `autoLoad`, `autoRotate`, `firstScene`,
`ignoreGPanoXMP`, `preview`, and `fallback`.
`ignoreGPanoXMP`, `preview`, `fallback`, `compass`, `showFullscreenCtrl`,
`showZoomCtrl`, `keyboardZoom`, `mouseZoom`, `doubleClickZoom`,
`disableKeyboardCtrl`, `draggable`, `showControls`, and `dragConfirm`.

+ 3
- 0
src/standalone/standalone.js 查看文件

@@ -54,8 +54,11 @@ function parseURLParameters() {
case 'showZoomCtrl':
case 'keyboardZoom':
case 'mouseZoom':
case 'doubleClickZoom':
case 'disableKeyboardCtrl':
case 'draggable':
case 'showControls':
case 'dragConfirm':
configFromURL[option] = JSON.parse(value);
break;
case 'author':


Loading…
取消
儲存