Tag Info

Hot answers tagged

2

The best reference for this is this page on the OSM Wiki. It has Pseudo code as well as code in various languages for converting from the XYZ tilenames, to the bounding box. The Pseudocode for this is as follows n = 2 ^ zoom lon_deg = xtile / n * 360.0 - 180.0 lat_rad = arctan(sinh(π * (1 - 2 * ytile / n))) lat_deg = lat_rad * 180.0 / π Note that this ...


2

We work regularly with tiled layers in our applications and I usually store tiles directly on a dedicated disk which I host as a virtual directory. You can see the tile directory here: http://argeomatica2012.cloudapp.net/SOLIDARIDAD_ortho/ I then add the tiles directly as a XYZ layer to my OpenLayers map like so: layerXYZ = new OpenLayers.Layer.XYZ("XYZ ...


1

This probably has nothing to do with Leaflet — it requests tile images the same way as other JS libraries, and caching is fully handled by the browser. Check your browser/devtools settings.


1

The problem in this case was rather stupid:) The cache mentioned above was residing in a folder, that was located in another folder, that was located in another folder. So despite the fact that I registered the main folder as a cache folder for the server, it couldn't read inside all these folders. So we created a new folder, named it exactly as the map ...


1

Jakub Kania was correct in his comment that the date/time have to be added to the url to make it different from the url of tiles in the cache. You have to subclass OpenLayers.Layer.XYZ for that: OpenLayers.Layer.CustomXYZ = OpenLayers.Class(OpenLayers.Layer.XYZ, { getURL: function () { var url = OpenLayers.Layer.XYZ.prototype.getURL.apply(this, ...


1

I would try to use the tilestache-seed.py script: https://github.com/TileStache/TileStache/blob/master/scripts/tilestache-seed.py You can get the bounds of your parcel (which units depend on the units of your data) and pass it into the script. use the '-x', '--ignore-cached' options to force the tiles to be regenerated. Since your data is coming from ...



Only top voted, non community-wiki answers of a minimum length are eligible