From 2198c2599604b1eaed9830b527cad6f7091c251d Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Mon, 7 Nov 2022 20:54:16 -0500 Subject: [PATCH] Add and document additional standalone URL config parameters. --- doc/url-config-parameters.md | 4 +++- src/standalone/standalone.js | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/url-config-parameters.md b/doc/url-config-parameters.md index cd30253..425df61 100644 --- a/doc/url-config-parameters.md +++ b/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`. diff --git a/src/standalone/standalone.js b/src/standalone/standalone.js index 22781ef..c33155a 100644 --- a/src/standalone/standalone.js +++ b/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':