Sie sind nicht angemeldet.

sebastiaan

Anfänger

  • »sebastiaan« ist der Autor dieses Themas

Beiträge: 7

Wohnort: The Hague, The Netherlands

Beruf: Software Developer

  • Nachricht senden

1

Montag, 22. März 2010, 16:35

Change location when clicking on hotspot in fullscreen

As the title says, I'd like to change the map location when I click on a hotspot in fulscreen mode.

I tried doing something like this, but it didn't do anything:

Quellcode

1
<hotspot onclick="set(plugin[maps].lat, '56.856075'); set(plugin[maps].lng, '114.169922'); set(plugin[maps].zoom, '8');" />


I also tried this without the quotes around the values, but it didn't make any difference. Setting visibility DOES work:

Quellcode

1
<hotspot onclick="set(plugin[maps].visible, false);" />


What did I miss?

2

Samstag, 27. März 2010, 10:50

Try this:

Quellcode

1
<hotspot onclick="updatespot(<your spot name>);" />

3

Donnerstag, 1. April 2010, 13:50

Hi,

setting the lat/lng values directly is not possible yet,

but you can use the setcenter() action of the plugin instead:
http://krpano.com/plugins/googlemaps/#setcenter

or for an animated change - the panto() action:
http://krpano.com/plugins/googlemaps/#panto

best regards,
Klaus