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

Tooltip functionality not working for polygons after changes from issue #1334 #1349

Closed
shahet1124 opened this issue Jul 2, 2024 · 2 comments
Labels
Milestone

Comments

@shahet1124
Copy link

shahet1124 commented Jul 2, 2024

Describe the bug

I've been working with the polygon markers in your viewer plugin and noticed that the tooltip functionality does not seem to work correctly when applied to polygons. While I can successfully create and display polygons with associated content, tooltips do not appear on hover as expected.

It worked before. But I made changes suggested in this issue #1344 then after it stopped working.

Here's the exact code snippet that worked before:

{
                                    id: 'product-1',
                                    polygon: [
                                        [0.596416174082061, -0.09412586265209733],
                                        [0.6643120055120949, -0.16225545829868682],
                                        [0.5974112353942319, -0.1626270065733766],
                                        [0.6542901056941313, -0.09226165407034559]
                                    ],
                                    tooltip: 'Samsung Galaxy TAB S6',
                                    style: {
                                            fill: 'rgba(255, 0, 0, 0.5)',
                                            stroke: 'rgba(255, 0, 0, 0.8)',
                                            strokeWidth: '2px'
                                        },
                                        content: '<p>The Samsung Galaxy Tab S6, released in August 2019, features a 10.5-inch Super AMOLED display with a resolution of 2560 x 1600 pixels. It is powered by the Qualcomm Snapdragon 855 processor, with options for 6 GB or 8 GB of RAM and 128 GB or 256 GB of storage, expandable via microSD. The tablet includes a dual rear camera setup (13 MP + 5 MP), an 8 MP front camera, and a 7040 mAh battery with fast charging. Key features include the S Pen, DeX mode for a desktop-like experience, quad speakers tuned by AKG, and an in-display fingerprint scanner. It runs on Android with Samsung\'s One UI.</p> <a href="https://amzn.in/d/1vqujtk"> <img src="https://m.media-amazon.com/images/I/31qVIrbLqJL._SY300_SX300_QL70_FMwebp_.jpg"/></a>',
                                },

Online demo URL

No response

Photo Sphere Viewer version

5.8.1

Plugins loaded

MarkersPlugin, VirtualTourPlugin

OS & browser

Windows 11, Firefox

Additional context

No response

@shahet1124 shahet1124 added the bug label Jul 2, 2024
@webmazz
Copy link

webmazz commented Jul 3, 2024

@shahet1124, try add this to css:
.psv-markers-svg-container { z-index: 31; }

@mistic100 mistic100 added this to the 5.8.2 milestone Jul 3, 2024
Copy link

github-actions bot commented Jul 4, 2024

This feature/bug fix has been released in version 5.8.2.

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

No branches or pull requests

3 participants