[SOLVED] Javascript: how to create polygonal or polyline hotspot

  • Hi,
    I try to create polyline hotspot within a javascript action.

    Base on the map example https://krpano.com/examples/#maps, i have a layer including tiles image and simple hotspots, all working as well.
    But adding polyline hotspot (or fill-polygonal) doesn't work. I don't have found answer/help on the forum.


    I also try something like


    Neither works. Returns obviously : ERROR: affiche_mapspots - TypeError: coupeA.point[0] is undefined
    Thanks for help
    Best regards, Nicolas

    Nicolas CARRY
    Ingénieur d'étude : Traitement numérique
    SIG, modélisation et développement en exploration virtuelle

    UMR 6249 Chrono-environnement
    Département de Géosciences de Besançon
    Université de Franche-Comté

    Edited once, last by ncarry (February 25, 2022 at 11:32 AM).

  • Hi,

    Thank you very much for the answer Klaus

    It works as well.
    Best regards, Nicolas

    Nicolas CARRY
    Ingénieur d'étude : Traitement numérique
    SIG, modélisation et développement en exploration virtuelle

    UMR 6249 Chrono-environnement
    Département de Géosciences de Besançon
    Université de Franche-Comté

Participate now!

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