Hi all, I have a text layer called selectDeparture and an array called departureAirports. This array contains a number of layers. When any of the layers in the departureAirports array is clicked, I want the name of the clicked layer to be passed to selectDeparture.html
So far I have tried to do this with a for loop (shown below), but what happens is the name of the first layer in the array is passed, no matter which layer is actually clicked. Can anyone tell me how to pass the name of the clicked layer please?