Find layer when rightclick on map view

Jan 23, 2015 at 7:01 AM
Hi,
I am looking for a way to find which layer is under mouse when it is right clicked on map viewer..I want to have a custom context menu based on layer that is right clicked on but I dont know how to find the layer under mouse click..How can I find it?is it even possible to combine this function to select tool?
Thank you for your help
Feb 4, 2015 at 12:36 PM
Any idea how to do this?