Matthew Petroff

Results 328 comments of Matthew Petroff

The [`addHotSpot`](https://pannellum.org/documentation/api/#addhotspot) method is what you're looking for. If you create your viewer with `var viewer = pannellum.viewer(...);`, you can add a hot spot to the current scene with ```javascript...

You appear to be using the `default` parameter incorrectly. You're setting it to the contents of the particular scene, which is incorrect. It's used to set parameters that are common...

You would start by defining your click handler function, e.g.: ```javascript function yourClickHandler(evt, args) { // Your logic goes here // `evt` is the click event // `args` is the...

> Is this still possible if the image data is in a different file as above? As long as your click handler is a valid function when you define your...

You need to provide a `basePath` to the root of the multires tile directory for each image. You're not providing one, so it's trying to load the same images for...

> Now, Simply I want to show fallback UI whenever image is too big. Pannellum will display an error message if the image is too big.

I'm pretty sure you're not actually displaying your claimed source photo. It looks like you're displaying some sort of thumbnail; in addition to the extremely low resolution, the image you're...

That sounds like a bug, but you need to provide an example, so I can reproduce it.

Yes, it's possible (except for `scene` hot spots, which won't work). Starting with the [video example](https://pannellum.org/documentation/examples/video/), if you replace the contents of the `` block with: ```javascript var myPlayer =...

Here's an example: ```html Hot spots #panorama { width: 600px; height: 400px; } function dragHandler(event, args) { console.log(event, args); } pannellum.viewer('panorama', { "type": "equirectangular", "panorama": "examplepano.jpg", "hotSpots": [ { "pitch":...