Im using OpenLayers with the openstreetmap tile server.
var urlTemplate = "http://c.tile.openstreetmap.org/{z}/{x}/{y}.png"I would like to download tiles for the current view or an extent. So that I can view them later offline.
Therefore Im trying to calculate the z, x,y for the tiles
The...