Browse Source

Add and document additional standalone URL config parameters.

pull/1131/head
Matthew Petroff 2 years ago
parent
commit
2198c25996
2 changed files with 6 additions and 1 deletions
  1. +3
    -1
      doc/url-config-parameters.md
  2. +3
    -0
      src/standalone/standalone.js

+ 3
- 1
doc/url-config-parameters.md View File

@@ -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`, These include `panorama`, `config`, `author`, `title`, `hfov`, `minHfov`, `maxHfov`,
`pitch`, `minPitch`, `maxPitch`, `yaw`, `minYaw`, `maxYaw`, `pitch`, `minPitch`, `maxPitch`, `yaw`, `minYaw`, `maxYaw`,
`haov`, `vaov`, `vOffset`, `autoLoad`, `autoRotate`, `firstScene`, `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 View File

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


Loading…
Cancel
Save