Preservation of MAP-zoom-level / variables to store zoom-level

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
ErhartC
Posts: 80
Joined: Wed May 22, 2024 6:53 pm
Contact:

Hi All!

I am seeking for a possibility to preserve the zoom-level of floorplans and maps in variables.
Is this possible?

Any help is welcome :-)
User avatar
Tony
Posts: 1377
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,
preserve the zoom-level of floorplans and maps
Can you elaborate a bit more on what you mean by preserve? Do you want to change the zoom level with a variable?

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
ErhartC
Posts: 80
Joined: Wed May 22, 2024 6:53 pm
Contact:

Hi Tony!

A bit more of information:

What's the case:
- Using an altered version of Feather-skin
- There you have 1 button for the floorplan and 1 button for the map
- When opening or reopening the map or floorplan, zoomlevel is resets to the zoomlevel configured in the skin (in this case in a timer-element)

What do I want:
- When user zooms to a sepcific level, this state should be reinitialiced when the map/floorplan will be reopened

Problem:
- There is no option to to this

Idea:
- Store the zoomlevel which the user is before closing the map (I cannot find a possibility to do that) and restore it (this is the easy task I presume)


Greetings


Chris
User avatar
Hopki
Gnome
Posts: 13437
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Guys,
If I may jump in, in the map element properties you will see Loading, with unload on hide selected.
So, each time the map element opens, showing a map or floor plan, it resets the view.
Deselect this to show the map or floor plan as it was when last closed.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
ErhartC
Posts: 80
Joined: Wed May 22, 2024 6:53 pm
Contact:

Yes!!!

Thank You Hopki! I always question myself what this option really does.
Of course I testet it. But there (which I know now) is an overriding command in the Feather-Box-Skin in the timer element which hindered proper results (I questioned over month this commands too).

Now nearly functioning.


What does not work (at least now) is to preserve map-zoom state in the Feather-Box-skin when using it with the phone. But I am working on that.


Greetings
User avatar
PanoMasters
Posts: 36
Joined: Sun Sep 20, 2009 8:54 pm

Is this what you need?

https://aegeanvt.com/test/map-zoom-level/
Here you can have current zoom level as variable
User avatar
ErhartC
Posts: 80
Joined: Wed May 22, 2024 6:53 pm
Contact:

Hi PanoMasters!

Yes, this would help too.

Could You give me a hint how to do it?
User avatar
PanoMasters
Posts: 36
Joined: Sun Sep 20, 2009 8:54 pm

I am building a small Pano2VR store. You can get this element from here - https://panomasters.gumroad.com/l/MapZoomLevel
Regards,
User avatar
ErhartC
Posts: 80
Joined: Wed May 22, 2024 6:53 pm
Contact:

Late answer:

I am doing my tours just for fun in leisure time. Therefor I am not willing to spend more money for this kind of small solutions.
If I want to spend money - I never would do that over a website without any idendity information, legal notice, ...
User avatar
Hopki
Gnome
Posts: 13437
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Just swinging back to this, if you deselect Unload on hide in any map element, then it will open using the same zoom level you had when it was closed.
However, in our skins, we have actions to reset the map; you need to identify these actions and remove them to get this to work.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
ErhartC
Posts: 80
Joined: Wed May 22, 2024 6:53 pm
Contact:

Thank you Hopki!

I found exactly that out some time ago and removed it :-)
User avatar
Hopki
Gnome
Posts: 13437
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

:D
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply