You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, May 15th 2018, 11:21am

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 ».

Source code

1
  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

This post has been edited 1 times, last edit by "ChukA" (May 22nd 2018, 12:13am) with the following reason: Solved :)


2

Tuesday, May 15th 2018, 4:40pm

it will be a things like this but it’s not lol

Source code

1
get(_selected_hotspot), removehotspot(get(name));

3

Tuesday, May 22nd 2018, 12:12am

it's ok i've found... regards