I have multiple layers on map and I want to get layer index where I clicked , It will be better if I get the name of layer where user clicked. If there is any to do that please help me.
How to get Layer Index where user clicked
Hi Shehraz,
If you click on map, that means you click on the same coordinate for all the layers.
So I think you should find a way to know which layer had been clicked, for example, if you are clicked near a feature, you can loop all the layer, then by our spatial query API to get the nearest features in all the layers, and make sure which layer is the target layer.
Regards,
Don