closing hotspot layer when clicking on image
See original GitHub issueHi,
thank you so much for egjs-view360, it is a remarkable piece of code and it is great fun using it. I have added some hot spots to a panoviewer panorama, and I would like to have the layer closed once the user clicks on the layered jpeg. I cannot seem to find the right way to modify the onclick=“closeLayer(event);” or place it right. Currently there is
<div class="layer" onclick="closeLayer(event);">
but this means that you have to click next to the layered jpeg to close the layer. And if I just append the onclick directive to the <img>
it does not work.
I am referring to this implementation example, any hints are appreciated. Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Interactive Diagrams: 3 Ways to Use Hotspots and Layers in ...
To add a layer to your diagram, select the layers icon from the right toolbar, and then select “+ Layer.” lucidchart layers. To...
Read more >Changing the state of an object on a base layer after hotspot is ...
I have a project in which I have multiple layers, each of which displays when I click on a transparent hotspot that is...
Read more >Option to disable hotspots underneath variant content?
I've been exploring using variants to have a collapsed pulldown/picker at the top of my interface click to expand a drawer with buttons ......
Read more >hotspot.Layer. Developer's guide - Yandex
Image layer · Hotspot descriptions ... Option that prevents opening the balloon when clicking on a hotspot object. ... Closing the balloon.
Read more >Add a Show Action to a Hotspot Over an Image
Steps to set an action to show a page element when the learner clicks on a hotspot added over an image. ... The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think it’s just okay to continue on here as it’s all hotspot-related questions 😃
First change the page content like this
Grab that element, and modify it whatever you like on
openLayer()
.And of course, you can transfer 2 variables at once.
There’s source code on here: https://github.com/naver/egjs-view360/blob/master/test/manual/PanoViewer/PanoViewer.html#L459
The point is on the
render
function so check that out 😃 You can use either gridView(that grid with a red circle on it), the file’s on here: https://github.com/naver/egjs-view360/blob/master/test/manual/js/GridView.js or just render the value direct as innerHTML like at the render function’s Line 471~473And also, stay safe you too :3
Wow, that’s really cool. I love it 😃 Thanks for making a great product with our component.
I’ll close this issue for now. Feel free to reopen it whenever you like.