Breaking change from 1.20.6 to 1.20.9 ?

  • With version krpano-1.20.6 it was possible to get a named of a linkedscene of a hotspot via javascript with
    krpano().get("hotspot[0].linkedscene"));
    after updating to krpano-1.20.9 i get an error, because

    krpano().get("hotspot[0]") do not contain "linkedscene" anymore.
    How can I access the linkedscene with krpano-1.20.9?

  • Ok, I have two hotspots defined in my xml file
    With krpano-1.20.6
    krpano().get("hotspot") i get an array with 2 values. Obvious.
    With krpano-1.20.9 i get 4 values !
    krpano().get("hotspot[0].name") -> skin_webvr_prev_scene
    krpano().get("hotspot[1].name") -> skin_webvr_next_scene
    and now hotspot[2] & hotspot[3] are my "real" hotspot.
    Can anybody confirm the changes in the api, or am i wrong?

  • Hi,

    why accessing your hotspot by index and not by name?!

    The index of the hotspots depends on the order of adding and why you don't know what hotspots are added in all involved xml files using an index is a bad idea.

    That means use:
    krpano.get("hotspot[NAME]")
    instead - where NAME is the name of your hotspot.

    Best regards,
    Klaus

  • When I start editing the tour I thought it is a good practice to give
    every hotspot (even in different scenes) a unique name. But this is
    not really necessary. So the better solution, is to select hotspots
    by name. Thanks !

Participate now!

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