Expand description
TilesProxy: a cache proxy for tiles.
Supported standards for tiles:
- OGC WMTS: OpenGIS Web Map Tile Service
- XYZ (aka Slippy Map Tilenames): the de facto OpenStreetMap standard
Configuration of origin tiles servers is done in a TOML file.
To enable browser caching, HTTP headers are added: ETag and Cache-Control. CORS headers are also added to enable canvas export (eg.: in OpenLayers) from browser.
Modulesยง
- cache ๐
- Tile cache management.
- config ๐
- Configuration for TilesProxy, deserialized from TOML file.
- http_
headers ๐ - Additional HTTP headers for browser cache management.
- tile_
request ๐ - Structs to store HTTP requests of a tile.
Functionsยง
- general_
not_ ๐found - Catcher for 404 errors.
- index ๐
- Root url.
- main ๐
- rocket ๐
- Rocket launch.
- run ๐
- Run function, also used by tests.
- wmts_
tile - URL for WMTS tile.
- wmts_
tile_ ๐not_ found - Catcher for 404 errors about WMTS tile.
- xyz_
tile - URL for XYZ tile.
- xyz_
tile_ ๐not_ found - Catcher for 404 errors about XYZ tile.