forked from stellwerke-info/tile_cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.php
More file actions
36 lines (29 loc) · 1.42 KB
/
config.sample.php
File metadata and controls
36 lines (29 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
const TILECACHE_CLEAN_DAYS = 16;
const TILECACHE_CLEAN_DAYS_HIGH_RES = 12;
const TILECACHE_BROWSER_CACHE_DAYS = 14; // This also needs to be changed in the .htaccess file.
// Branding that is shown to the user and User Agent/Referer sent to the upstream tile servers.
const TILECACHE_BRANDING = 'Test TileCache';
const TILECACHE_USER_AGENT = 'Test tilecache / Contact: info@example.invalid';
const TILECACHE_REFERER = 'https://example.invalid/';
// All defined upstream tilesets.
// - Only keys consisting of letters can be used!
// - The value is an array consisting of a template string, and the max zoom level.
// - The template string supports the parameters {s} and {x},{y},{z}. If the URL does not contain
// the three coordinate placeholders, a default of `/{z}/{x}/{y}.png` will be appended.
const TILECACHE_LAYERS = [
'osm' => [ 'https://tile.openstreetmap.org', 17 ],
'orm' => [ 'https://{s}.tiles.openrailwaymap.org/standard', 17 ],
];
// Store all layer folders in this subdirectory:
// - plain directory name (must be relative to the current directory, without delimiting slashes)
// - or an empty string, for this directory
const TILECACHE_REPOSITORY = '';
// Some config options for the public index site.
const INDEX_DESCRIPTION = 'A short public description';
const INDEX_LINKS = [
'https://example.invalid' => 'An example link',
];
const INDEX_META_LINKS = [
'https://example.invalid' => 'An example meta link',
];