Problem with map levels
Posted: Wed Feb 21, 2018 9:30 pm
Hello!
Currently I am stuck in problem regarding a new tour. Could someone please give me a hint on how to overcome my - hopefully - temporary blindness?
The structure of the tour is pretty straight foreward.
There are three levels in the building and all panos are tagged accordingly:
Untergeschoss - Tag: UG
Erdgeschoss - Tag: EG
Obergeschoss - Tag: OG
For each floor there is a node marker at the start of skin:
Toggle UG - on activation it shows the map Karte-UG, on deactivation it hides the map Karte_UG. And the marker is connected to the tag UG.
And the like for the other two floors
There is a Container "Maps" holding the three floor-maps Karte-UG, Karte_EG and Karte_OG (Map position: -810/40)
The maps are structured thus:
Position is set to -810 / 40
Then come three node markers: Erdgeschoss, Untergeschoss, Obergeschoss
They contain a Text same as the name of the nod marker - only difference is that the corresponding (i.e. text for Untergeschoss in the map Karte-UG) floor is white font on blue ground whereas the other two are black font on white ground.
Actions are On mouse-click hide the map of the current floor and show the map of the clicked floor. I.e. If in the map Karte-UG, a click on Erdgeschoss will hide the map Karte_UG and show the map Karte_EG.
Then the marker-nodes for the panoramas of that level will follow. That was easy due to the setup of the simplex skin - really great.
All the three maps are structured correspondingly.
In a next step I have modified the controller, following the instructions of the tutorials.
There are two buttons: karten_offen to open the map and karten_zu to close the map.
Actions in karten_offen are: on mouse.click change position of container Maps to 810 / 0, scale $self to 0/0 and scale karte_zu to 1/1. For button karte_zu the other way round.
Finally I have modified the hotspot template in the skin, adding the following actions:
On mouse-click change position of Maps to 0/0, scale karte_zu to 0/0 and scale karte_offen to 1/1.
When creating the tour, everything is fine. I can toggle the maps on and of. When I click on a marker that leads to a different level while the map is open, in the new panorama, the map of the correct level is shown. If I click on a hotspot to a panorama on a different level, the map closes, the new pano is loaded an on opening the map, the proper level will appear.
Problems arise, when I change the floor by clicking one of the other floor buttons in the map - say I click Erdgeschoss (corresponding map Karte_EG), while I am in the map Karte_OG. Well, the map Karte_EG will show up and I can click panos in the map. But from that click on, the Karte_EG will stick to me like hell. When go to a different pano either using a hotspot in the pano or a location in the map - the Karte_EG will show up, no matter what level I am in.
What I would like to achieve is in an example:
I open a panorama in Karte_OG
I click the button Erdgeschoss in that map, this takes me to the map Karte_EG (works)
First method:
I add a node-marker button to the map - when clicked the proper pano for the floor, the current pano is located on (as indicated by the tag of the pano), will show up. Like being in Obergeschoss (Karte_OG), clicking on the button to show Karte_EG. The new button will take me back to Karte-OG.
Second Method:
Situation: I am in the map Karte_OG, I have clicked map Karte_EG, this is showing now.
Aim: When I change the panorama either by clicking in the map or on a hotspot, the correct map will show up.
The link to the current version of the tour is:
http://www.freiburg-panorama.de/touren/pfarrhaus/
There is a folder with project and skin under:
http://www.freiburg-panorama.de/touren/rees.zip
Any help on that issue is greatly appreciated - I fear I am just blind for an obvious solution.
Greetings
Carsten
Currently I am stuck in problem regarding a new tour. Could someone please give me a hint on how to overcome my - hopefully - temporary blindness?
The structure of the tour is pretty straight foreward.
There are three levels in the building and all panos are tagged accordingly:
Untergeschoss - Tag: UG
Erdgeschoss - Tag: EG
Obergeschoss - Tag: OG
For each floor there is a node marker at the start of skin:
Toggle UG - on activation it shows the map Karte-UG, on deactivation it hides the map Karte_UG. And the marker is connected to the tag UG.
And the like for the other two floors
There is a Container "Maps" holding the three floor-maps Karte-UG, Karte_EG and Karte_OG (Map position: -810/40)
The maps are structured thus:
Position is set to -810 / 40
Then come three node markers: Erdgeschoss, Untergeschoss, Obergeschoss
They contain a Text same as the name of the nod marker - only difference is that the corresponding (i.e. text for Untergeschoss in the map Karte-UG) floor is white font on blue ground whereas the other two are black font on white ground.
Actions are On mouse-click hide the map of the current floor and show the map of the clicked floor. I.e. If in the map Karte-UG, a click on Erdgeschoss will hide the map Karte_UG and show the map Karte_EG.
Then the marker-nodes for the panoramas of that level will follow. That was easy due to the setup of the simplex skin - really great.
All the three maps are structured correspondingly.
In a next step I have modified the controller, following the instructions of the tutorials.
There are two buttons: karten_offen to open the map and karten_zu to close the map.
Actions in karten_offen are: on mouse.click change position of container Maps to 810 / 0, scale $self to 0/0 and scale karte_zu to 1/1. For button karte_zu the other way round.
Finally I have modified the hotspot template in the skin, adding the following actions:
On mouse-click change position of Maps to 0/0, scale karte_zu to 0/0 and scale karte_offen to 1/1.
When creating the tour, everything is fine. I can toggle the maps on and of. When I click on a marker that leads to a different level while the map is open, in the new panorama, the map of the correct level is shown. If I click on a hotspot to a panorama on a different level, the map closes, the new pano is loaded an on opening the map, the proper level will appear.
Problems arise, when I change the floor by clicking one of the other floor buttons in the map - say I click Erdgeschoss (corresponding map Karte_EG), while I am in the map Karte_OG. Well, the map Karte_EG will show up and I can click panos in the map. But from that click on, the Karte_EG will stick to me like hell. When go to a different pano either using a hotspot in the pano or a location in the map - the Karte_EG will show up, no matter what level I am in.
What I would like to achieve is in an example:
I open a panorama in Karte_OG
I click the button Erdgeschoss in that map, this takes me to the map Karte_EG (works)
First method:
I add a node-marker button to the map - when clicked the proper pano for the floor, the current pano is located on (as indicated by the tag of the pano), will show up. Like being in Obergeschoss (Karte_OG), clicking on the button to show Karte_EG. The new button will take me back to Karte-OG.
Second Method:
Situation: I am in the map Karte_OG, I have clicked map Karte_EG, this is showing now.
Aim: When I change the panorama either by clicking in the map or on a hotspot, the correct map will show up.
The link to the current version of the tour is:
http://www.freiburg-panorama.de/touren/pfarrhaus/
There is a folder with project and skin under:
http://www.freiburg-panorama.de/touren/rees.zip
Any help on that issue is greatly appreciated - I fear I am just blind for an obvious solution.
Greetings
Carsten