You are not logged in.

1

Saturday, June 28th 2014, 11:01am

hotspots jungle !

Hi !
I have a tour that starts with planar projection map. There are 34 spots on it at the moment, and more to come in the future. But it already looks like hotspots jungle ! *confused*
Some of them are close and nearly touching. So I tried to enable Spot size changes with zoom level, but it doesn't work yet in planar projection. Why ? Can we fix it ?


Is there any possibility to hide some of them with zoom level ?

Thank you very much for your ideas and your help !

Cyril

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

2

Saturday, June 28th 2014, 5:15pm

What you mean by planar projection?
My first idea is to make hotspots size handler that will on each view changed be triggered by event and based on calculated zoom level (make it from 1-10 based on min and max values) and with some new attribute in the each hotspot definition e.g. show_at_zoom_level="4" go through all hotspots and turn off all of them being defined to be hidden when level is to low.
Umalo

3

Saturday, June 28th 2014, 10:07pm

Thank you for your answer !
Planar projection is a flat pano. It's just a normal JPEG picture.

Quoted

My first idea is to make hotspots size handler that will on each view changed be triggered by event and based on calculated zoom level (make it from 1-10 based on min and max values) and with some new attribute in the each hotspot definition e.g. show_at_zoom_level="4" go through all hotspots and turn off all of them being defined to be hidden when level is to low.
That's a good idea. But I'm a newbe here ! How can I do that ?
How to create an event based on calculated zoom level ?


Thank you for your help ! Cyril

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

4

Saturday, June 28th 2014, 11:32pm

You can see what I had in mind below. There are other ways on how to do this but this came to mine mind first.

Link to online example of hotspots with visibility and size related to zoom level: link to online example
Code you can see: link to xml

Of course you have to adapt the code to your pano but to give you idea one one solution for you request.

5

Tuesday, July 1st 2014, 9:06am

*love* Umalo, *love* I LOVE YOU ! *thumbsup*

That's exactly what I needed. It works fine. *thumbsup* It is simple, and efficient. At the beginning, only main spots are there, then other spots are coming one by one. It's really fine. *smile* *thumbsup*
Thank you very very much ! *thumbsup*

6

Tuesday, July 1st 2014, 12:32pm

There's only one little problem : with this new code, when I click on one spot, the pano is loaded, but all hotpots on that pano are not visible...
How can I do to stop this action when a pano is loaded ?
Thank you one more time !

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

7

Tuesday, July 1st 2014, 5:19pm

Don't know what you did with the code so can''t give you more than:
- There is onviewchange event used that is checking current zoom level and make some hotspots invisible.
So it might be that you have to remove this event before loading new pano not to be active on your new scene and not making your hotspots invisibe there too.

Easiest way is to make this event not global but local:
Change
<events onviewchange="checkfovchange();"/>
to
<events name="somename" onviewchange="checkfovchange();"/>

Without keep="true" it will be removed when loading new pano.

Reference for you: http://krpano.com/docu/xml/#namedevents

8

Saturday, July 5th 2014, 10:32am

Ok, with events name="somename" it works fine !


Thank you once again, my tour seems more clear now.

Similar threads