Copy link to clipboard
Copied
----------------------------------------------
Copy link to clipboard
Copied
You cannot find the bookmark object last clicked. You'd need to create separate JavaScript for each bookmark, including the name.
Copy link to clipboard
Copied
Your answer was clear and a great help for me.
I resolved it by making another script that generates separate script for each bookmark with each bookmark name.
Thank you!
Copy link to clipboard
Copied
You should use a function and pass to it the name of the bookmark that triggers each event as a parameter. Since that name is also the name of the layer you could use that to identify the layer and then show it.
Copy link to clipboard
Copied
Thank you for your advice.