How to I catch which imagery layer has been selected in the viewer by the user.
I have a base map layer, then a number of drone imagery layers loaded via ION. These layers may stack or only slightly overlap each other.
I need to catch which layer has been clicked on by the user. I do this with entities using screenSpaceEventHandler.setInputAction, but can’t get imagery layers to work in a similar fashion.
I add the drone images using
var layer = viewer.imageryLayers.addImageryProvider(
new Cesium.IonImageryProvider({ assetId: 123456 })
);
Thanks
Jason