Name | Description | Allowed values | Default value |
path | Starting folder - Has to be a relative path to the "pannellum" folder, so it has to start with ../ |
string | ../pictures |
file | Filename (using path) or URL of the panorama. | string | - |
name | Title that is shown in the lower left corner | string | - |
author | Name of the author | string | - |
size | Instead of using the complete browser view this will keep the panorama view at the given size. Needs to be given as a complete strng without whitespaces like 800x600 or 1200x800 |
string | - |
background | Defines the background color when size is given. Can be a named color like 'black' or 'white' or a css color string like '#f2f3f2' (without the ' of cause). |
any CSS color string | - |
center | Show panorama viewer in the center of the page | 0 - 1 | 0 |
autoload | Loads the file automatically | 0 - 1 | 0 |
autorotate | Automatically rotate panorama when loaded; rotation speed in degrees per second. Positive is counter-clockwise, and negative is clockwise. |
0 - infinity | 0 |
compass | If heading information is present in Photo Sphere XMP metadata a compass is shown; could be supressed with this parameter set to 0 |
0 - 1 | automatically set |
yaw | Starting position in degrees horizontally | 0 - 360 | 0 |
pitch | Starting position in degrees vertically | 0 - 360 | 0 |
fov | Starting horizontal field of view in degrees | 0 - 360 | 90 |
minfov | Minimum horizontal field of view in degrees | 0 - 360 | 50 |
maxfov | Maximum horizontal field of view in degrees | 0 - 360 | 120 |
showinfo | If set to 1 a small badge with current fov, pitch and yaw will be shown in top right corner | 0 - 1 | 0 |
https://klein-bild.de/gallery/pannellum/?file=panorama.jpg
https://klein-bild.de/gallery/pannellum/?file=panorama.jpg&name=Testpanorama&yaw=145
https://klein-bild.de/gallery/pannellum/?file=panorama.jpg&name=A%20small%20example%3Cbr%3Ein%20two%20lines