Deleting a single point in a polygonal hotspot

  • Hi,

    I am writing a tool to draw on a krpano viewer. Part of this is dynamically creating polygonal hotspots, much like the example given in the "addhotspot" documentation.

    The problem is that I cannot delete any of these points — how do I delete a single point? Is this even possible?

    EDIT: things I have tried (that do not work):

    Code
    removehotspot(hotspot[polyspot].point[3])
    delete(hotspot[polyspot].point[3])
    delete(hotspot[polyspot].point['n3']

    Rylee Fowler
    Full Stack Developer, Devio, LLC.

  • That would not help. My goal is to be able to delete any single added point.

    Will I simply have to delete the whole hotspot and re-render it? That would be reasonably trivial.

    Rylee Fowler
    Full Stack Developer, Devio, LLC.

  • Hi Alexey,

    Yes. That works perfectly!

    Do note that you must call "updatescreen()" before this change will be graphically represented.

    Rylee Fowler
    Full Stack Developer, Devio, LLC.

Participate now!

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