Layer/hotspot do action on other hotspot ?

  • hello there, i’m looking for the code to execute an action to an hotspot when i click on a layer.
    i have a layer named « delete_hotspot », when i click on it, i want to deleted a selected « hotspot ».

    Code
    set(hotspot[get(_selected_hotspot)].onclick, removehotspot(get(name)));


    this code work: but i need to click on the « hotspot » after i need to click on « layer:delete_hospot » and after to the hotspot himself..

    I want to save a step, click on the hotspot to « _selected_hotspot » and only click to «layer » for delete the selected one.

    i think it’s easy but i don’t find it...

    regards

    Einmal editiert, zuletzt von ChukA (22. Mai 2018 um 00:13) aus folgendem Grund: Solved :)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!