Skip to content

Add support of hotspot thumbnail image - #1131

Open
Wolfshe wants to merge 1 commit into
mpetroff:masterfrom
Wolfshe:master
Open

Add support of hotspot thumbnail image#1131
Wolfshe wants to merge 1 commit into
mpetroff:masterfrom
Wolfshe:master

Conversation

@Wolfshe

@Wolfshe Wolfshe commented Dec 9, 2022

Copy link
Copy Markdown

The proposed modification allows to add thumbnail at each hotspot linker. The thumbnail is display when the mouse enter in the hotspot linker element.

The thumbnail image is defined in the config json file with the "thumbnail" attribute.

@mpetroff

Copy link
Copy Markdown
Owner

Unless I'm missing something, this can already be done by setting the cssClass hot spot parameter and using the :hover selector for the custom CSS class. Doing this styling using CSS is better for performance reasons, anyway.

@Wolfshe

Wolfshe commented Dec 19, 2022

Copy link
Copy Markdown
Author

The proposed feature allows to load a specific thumbnail for a hotspot (like preview rendering of the scene associated to the hotspot). This implies to use the thumbnail attribute loaded in javascript to craft adapted css attribute.

This feature cannot be implement by a custom CSS class with :hover because hotspots don't share same thumbnail.

Best regards

@mpetroff

Copy link
Copy Markdown
Owner

This feature cannot be implement by a custom CSS class with :hover because hotspots don't share same thumbnail.

Yes, it can. You just give each hot spot a different CSS class.

@syifaa34

Copy link
Copy Markdown

hi, can i know how to solve the problem where i put the animation for the custom arrow hotspot in my virtual tour and it will be positioned based on pitch and yaw that i have set in javascript file. Right now, the custom arrow hotspots are positioned at top left corner.

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

Successfully merging this pull request may close these issues.

3 participants