How do I get the index of a clicked point from a tile in WMTS layer? I also want the tile row and column number corresponding to the clicked location. So I tried to set the extent of my WMTS layer to the clicked point. So my code was something like this
In this case I am able to get the row and column of the tile corresponding to my clicked point. But the extent of my rendered tile has my clicked point coordinates as I had used them to create my WMTS layer. So I am unable to use the WMTS tile extent co-ordinates to find my pixel coordinates mathematically. I would appreciate any suggestions as to how to work on this. Should I use the scale and resolution of the loaded tile in any way?