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!

  • 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!

  • 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:
    https://krpano.com/plugins/bingmaps/#spot.activatespot

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

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!