A small bug perhaps?

  • I just found something that might be a small bug. I'm using 1.19-pr8 though, mind you.

    So I'm creating a hotspot inside of a JS plugin like this:

    Code
    var myhotspot = krpano.addhotspot("myhotspot");

    Then later on in the code I'm changing it's name, like this:

    Code
    myhotspot.name = "newname";

    And then on a specific user interaction, when I want to remove this hotspot, this doesn't work:

    Code
    krpano.removehotspot("newname");

    but this does:

    Code
    krpano.removehotspot("myhotspot");

    Even though I double checked and the hotspot's name has indeed been updated, well, at least that's what krpano reports back to me.

  • Hi,

    the name setting is very special one - changing it is possible but only via the krpano APIs.

    E.g.

    Code
    krpano.set("hotspot[myhotspot].name", "newname");

    When changing the 'name' property directly via JS, the viewer itself is not aware about that change.

    Best regards,
    Klaus

Participate now!

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