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 coordinate Z should be avaible from the maps zoom
But how can I find the different x,y Coordinates for the view/extent? Is there a OpenLayers funtion for that?
أكثر...
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 coordinate Z should be avaible from the maps zoom
But how can I find the different x,y Coordinates for the view/extent? Is there a OpenLayers funtion for that?
أكثر...