# JSON Configuration File Options ## General options ### `type` (string) This specifies the panorama type. Can be `equirectangular`, `cubemap`, or `multires`. Defaults to `equirectangular`. ### `title` (string) If set, the value is displayed as the panorama's title. If no title is desired, don't set this parameter. ### `author` (string) If set, the value is displayed as the panorama's author. If no author is desired, don't set this parameter. ### `authorURL` (string) If set, the displayed author text is hyperlinked to this URL. If no author URL is desired, don't set this parameter. The `author` parameter must also be set for this parameter to have an effect. ### `strings` (dictionary) Allows user-facing strings to be changed / translated. See `defaultConfig.strings` definition in `pannellum.js` for more details. ### `basePath` (string) This specifies a base path to load the images from. ### `autoLoad` (boolean) When set to `true`, the panorama will automatically load. When `false`, the user needs to click on the load button to load the panorama. Defaults to `false`. ### `autoRotate` (number) Setting this parameter causes the panorama to automatically rotate when loaded. The value specifies the rotation speed in degrees per second. Positive is counter-clockwise, and negative is clockwise. ### `autoRotateInactivityDelay` (number) Sets the delay, in milliseconds, to start automatically rotating the panorama after user activity ceases. This parameter only has an effect if the `autoRotate` parameter is set. Before starting rotation, the viewer is panned to the initial pitch. ### `autoRotateStopDelay` (number) Sets the delay, in milliseconds, to stop automatically rotating the panorama after it is loaded. This parameter only has an effect if the `autoRotate` parameter is set. ### `orientationOnByDefault` (boolean) If set to `true`, device orientation control will be used when the panorama is loaded, if the device supports it. If false, device orientation control needs to be activated by pressing a button. Defaults to `false`. Note that a secure HTTPS connection is required for device orientation access in most browsers. Additionally, this feature does not work in combination with `autoLoad: true` in most browsers, since a user interaction is required to prompt for permission. ### `showZoomCtrl` (boolean) If set to `false`, the zoom controls will not be displayed. Defaults to `true`. ### `keyboardZoom` (boolean) If set to `false`, zooming with keyboard will be disabled. Defaults to `true`. ### `mouseZoom` (boolean or string) If set to `false`, zooming with mouse wheel will be disabled. Defaults to `true`. Can also be set to `fullscreenonly`, in which case it is only enabled when the viewer is fullscreen. Can also be set to `ctrl`, in which case the `ctrl` key must be held down to zoom with the mouse wheel (except while the viewer is fullscreen); when the `ctrl` key is required for mouse wheel zooming, the use of `ctrl` / `shift` for zoom control is disabled. ### `doubleClickZoom` (boolean) If set to `false`, the zoom to click location on double click function will be disabled. Defaults to `true`. ### `draggable` (boolean) If set to `false`, mouse and touch dragging is disabled. Defaults to `true`. ### `dragConfirm` (boolean or string) If set to `false`, one finger can be used to pan viewer. Defaults to `false`. Can also be set to `pitch`, `yaw`, or `both`. If set to `pitch` or `both`, two fingers need to be used to pan vertically (except while the viewer is fullscreen). If set to `yaw` or `both`, two fingers need to be used to pan horizontally (except while the viewer is fullscreen). ### `friction` (number) Controls the "friction" that slows down the viewer motion after it is dragged and released. Higher values mean the motion stops faster. Should be set (0.0, 1.0]; defaults to 0.15. ### `disableKeyboardCtrl` (boolean) If set to `true`, keyboard controls are disabled. Defaults to `false`. ### `showFullscreenCtrl` (boolean) If set to `false`, the fullscreen control will not be displayed. Defaults to `true`. The fullscreen button will only be displayed if the browser supports the fullscreen API. ### `showControls` (boolean) If set to `false`, no controls are displayed. Defaults to `true`. ### `touchPanSpeedCoeffFactor` (number) Adjusts panning speed from touch inputs. Defaults to `1`. ### `yaw` (number) Sets the panorama's starting yaw position in degrees. Defaults to `0`. ### `pitch` (number) Sets the panorama's starting pitch position in degrees. Defaults to `0`. ### `hfov` (number) Sets the panorama's starting horizontal field of view in degrees. Defaults to `100`. ### `minYaw` and `maxYaw` (number) Sets the minimum / maximum yaw the viewer edge can be at, in degrees. Defaults to `-180` / `180`, i.e. no limit. ### `minPitch` and `maxPitch` (number) Sets the minimum / maximum pitch the viewer edge can be at, in degrees. Defaults to `undefined`, so the viewer center can reach `-90` / `90`. ### `minHfov` and `maxHfov` (number) Sets the minimum / maximum horizontal field of view, in degrees, that the viewer can be set to. Defaults to `50` / `120`. Unless the `multiResMinHfov` parameter is set to `true`, the `minHfov` parameter is ignored for `multires` panoramas. ### `multiResMinHfov` (boolean) When set to `false`, the `minHfov` parameter is ignored for `multires` panoramas; an automatically calculated minimum horizontal field of view is used instead. Defaults to `false`. ### `compass` (boolean) If `true`, a compass is displayed. Normally defaults to `false`; defaults to `true` if heading information is present in Photo Sphere XMP metadata. ### `northOffset` (number) Set the offset, in degrees, of the center of the panorama from North. As this affects the compass, it only has an effect if `compass` is set to `true`. ### `preview` (string) Specifies a URL for a preview image to display before the panorama is loaded. ### `previewTitle` (string) Specifies the title to be displayed while the load button is displayed. ### `previewAuthor` (string) Specifies the author to be displayed while the load button is displayed. ### `horizonPitch` and `horizonRoll` (number) Specifies pitch / roll of image horizon, in degrees (for correcting non-leveled panoramas). ### `animationTimingFunction` (function) [API only] This specifies a timing function to be used for animating movements such as when the `lookAt` method is called. The default timing function is `easeInOutQuad`. If a custom function is specified, it should take a number [0, 1] as its only argument and return a number [0, 1]. ### `escapeHTML` (boolean) When true, HTML is escaped from configuration strings to help mitigate possible DOM XSS attacks. This is always `true` when using the standalone viewer since the configuration is provided via the URL; it defaults to `false` but can be set to `true` when using the API. ### `targetBlank` (boolean) When `true`, `target="_blank"` is set on most hyperlinks to open them in new tabs. This is always `true` when using the standalone viewer since said viewer is often used in an `