Sie sind nicht angemeldet.

1

Montag, 2. September 2013, 16:53

Change HotSpot style on click



Hello i'm want to change the state of the hotspot that call the javascripit on click.

i have made the style:

<style name="vito"
url="plus.png"
overurl="plusActive.png"
activeurl="plusActive.png"
edge="center"
x="0"
y="0"
scale="1.0"
onclick="openDetail(); activatespot();"
/>

and on click i have insert the action activate spot. But nothing happens...
Am i doing something totally wrong?? *confused*


ThankYou for your help!

2

Dienstag, 3. September 2013, 09:14

Hi,
onclick="openDetail(); activatespot();"
what are these actions doing?

Best regards,
Klaus

3

Mittwoch, 4. September 2013, 11:16

hello, i'm using krpano in an Ios app:

opendetail() is an action that trigger an objecticeC methods in xcode,
and for activatespot() i have read on the krpano documentation that is the action that change the url of the image for the hotspot in activeurl... is not correct?

this is my style for the hotspot:

<style name="hotspotDetail"
url="plus.png"
overurl="plusActive.png"
activeurl="plusActive.png"
edge="center"
x="0"
y="0"
scale="1.0"
onclick="openDetail(); activatespot();"
/>



Thank You!

4

Donnerstag, 5. September 2013, 14:23

Hi,
opendetail() is an action that trigger an objecticeC methods in xcode,
Have you set/added that function via the Javascript interface?

and for activatespot() i have read on the krpano documentation that is the action that change the url of the image for the hotspot in activeurl... is not correct?
Partially - there exists an activatespot() function only in the Bing/Google Maps plugins and there it only 'activates' the map spot, which means it uses the activated-spot-image and has the radar assigned to it:
http://krpano.com/plugins/bingmaps/#spot.activatespot

That means that works only for the Bing/Google Maps plugin.

Best regards,
Klaus