I am trying to fetch extra data for each individual tile in Openlayers, from my own data server. I mainly have two questions:
How to get the x, y, z dynamically for each tile as in the tile URL, e.g. http://mapserver.com/tile?z=15&x=17140&y=10859 (I got that from the resource panel of Chrome dev tools but I have no idea how to get it programmatically)
The assumption behind this idea is, if I prepare my data using a tile space based on the same zoon level (15 in the above example), I should be able to query row (x = 17140) and col (y=10859) to get data that is corresponding to the tile itself?
Thanks in advance!