Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Navigation (Scene) hotpoints that can be applied into a floorplan #1155

Open
Macfelon opened this issue Apr 6, 2023 · 3 comments

Comments

@Macfelon
Copy link

Macfelon commented Apr 6, 2023

Love the navigation, was wondering if it was possible to add a feature where you could put the hotspots to the scene also outside the pano display block, like a floor plan?

@mpetroff
Copy link
Owner

I'd argue that something like this is out of the scope of the library, as many different variations of it are possible. There are various ways to display floor plans, and for outdoor use, a map would be more appropriate, for which there are many mapping libraries.

Thus, I think this is the type of functionality that is best left to custom implementation using the API (although it might make a good advanced example for use of the API). To implement something like this, you'd want to add click handlers to the hot spots on your floor plan that call Pannellum's loadScene method with the appropriate scene name to switch scenes. You could also attach an event handler for Pannellum's load event to highlight the active scene on your floor plan.

@Macfelon
Copy link
Author

Ok, I'll try those options, seems a way to do it.

@Macfelon
Copy link
Author

Ok, I was able to do a imgmap, and then on the areas use the api (loadScene) as an onclick call for each map to make it change, it's working precisely as I would want it to!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants