Sie sind nicht angemeldet.

1

Sonntag, 22. Dezember 2013, 12:53

Want Gmaps Map or Bing Map to diseappear with i click on a spot

Hello,

I've put some spots on the Google map and i'm blocked : when i click on a spot which is on the Google map, the chosen scene appears in the background but the map is still here.

I don't want to have the Google map still in the first level and i prefer to have it hidden after cliking on the spot.

It is possible ? i haven't found something on this ......

Thanks a lot for your help and have a nice day.

Regards
Manu *rolleyes*

2

Dienstag, 24. Dezember 2013, 21:25

Without the code, hm: Before calling loadscene in spot onclick attribute add command to hide map. E.g.
.
.
onclick="hide_map();loadscene(scene_1.....)"

<action name="hide_map">
set(layer[bing_map].visible,false);
</action>

3

Dienstag, 31. Dezember 2013, 10:50

Hi Umalo.

Maybe i've done something wrong, i've just tested :

<spot name="Chateau_Montjoux_122013" lat="46.3712657405864" lng="6.46697759628296" heading="200" active="true" onclick="hide_map();loadscene(Chateau_Montjoux_122013,null,BLEND(1))" />

<action name="hide_map">
set(layer[google_map].visible,false);
</action>


and it does not work : i still have the google map on the first level after clicking on the spot.

I 've tested with "bing_map", "google_map" .... it tells me at the web page load : "/plugins/maps.js" does not exists ...

Ok: i copied the file googlemaps.jp to maps.js but it still does not work.

I missed something ?

tks a lot a happy new year :)

Manu

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

4

Dienstag, 31. Dezember 2013, 13:34

Do you have spot element inside map layer like this?

<plugin name="map"
url="googlemaps.swf"
...
>
<spot name="Chateau_Montjoux_122013" lat="46.3712657405864"
lng="6.46697759628296" heading="200" active="true"
onclick="hide_map();loadscene(Chateau_Montjoux_122013,null,BLEND(1))"

/>


<radar visible="true" ... />
<positioncontrol visible="false" ... />
<zoomcontrol visible="false" ... />
<maptypecontrol visible="false" ... />
</plugin>
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

5

Dienstag, 31. Dezember 2013, 16:55

Hard to say when I don't see complete code (send me xml on mail or pm).
I see you are trying to call scene that is named same as spot name. This I think is also not correct but shouldn't be the reason why you map is not hidden.
Is map plugin name google_map?

6

Dienstag, 31. Dezember 2013, 17:11

Here are the files used ....

i have some spot references in both files ... but links are on the vtour skin.

here is the result : http://www.lookit.org/vueduciel/vtour/

You can see that when you click on a spot on the google map, the panorama changes in background but the map is still here ....

it's my "from sky" panoramas web site ... just starting.

I really appreciate your help ... tks a lot guys.

Happy new year :)

Regards
Manu
»nslmanu« hat folgende Dateien angehängt:
  • vtourskin.xml (36,86 kB - 69 mal heruntergeladen - zuletzt: Heute, 13:03)
  • tour.xml (17,6 kB - 79 mal heruntergeladen - zuletzt: Heute, 13:03)

7

Dienstag, 31. Dezember 2013, 17:56

There are two maps. Which one we are talking about?
Not sure that actions should be nested in layer definitions.
Try moving hide_map action below last /layer row. Add some traces to see if it is executed:

Quellcode

1
2
3
4
<action name="hide_map">
showlog(); trace(HIDDING the map);
set(layer[skin_map].visible,false);
</action>

Remove second action with same name.
Also take care that your plugin is not called google_map but skin_map where

8

Dienstag, 31. Dezember 2013, 18:20

yup, thanks a lot ...

it's better now as this :

<spot name="Chateau_de_Thenieres_112013" lat="46.303468" lng="6.325942" heading="200" active="true" onclick="hide_map();loadscene(Chateau_de_Thenieres_112013,null,BLEND(1))" />
<spot name="Saint_Jean_Daulps_122013" lat="46.234585" lng="6.655675" heading="200" active="true" onclick="hide_map();loadscene(Saint_Jean_Daulps_122013,null,BLEND(1))" />
<spot name="Port_Thonon_122013" lat="46.375440" lng="6.477814" heading="200" active="true" onclick="hide_map();loadscene(Port_Thonon_122013,null,BLEND(1))" />
<spot name="Chateau_Montjoux_122013" lat="46.3712657405864" lng="6.46697759628296" heading="200" active="true" onclick="hide_map();loadscene(Chateau_Montjoux_122013,null,BLEND(1))" />

</layer>
</layer>
</layer>
</layer>
<action name="hide_map">
set(layer[skin_map].visible,false);
</action>


But i have a strange thing now : I have like a veil on the view when the map disappears.

In fact i have to click a second time on the "earth" to have this veil disappeared.

you see it ? http://www.lookit.org/vueduciel/vtour/

9

Mittwoch, 1. Januar 2014, 16:48

Aha, you need to call skin_showmap(); in that case instead of hide_map();.
What is purpose of anothermap on loverbottom part?

10

Mittwoch, 1. Januar 2014, 17:11

Umalo,

as you can see now on my website : it works as expected.

I've added the thumbs in the bottom.

Wish you lot of good things :) for this new year.

You can see the Geneva Jet now from sky for this first day !

:)
Manu