-
Notifications
You must be signed in to change notification settings - Fork 7
/
.config.php.template
48 lines (36 loc) · 1.85 KB
/
.config.php.template
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
37
38
39
40
41
42
43
44
45
46
47
<?php
# Define supported layers, the first being a fallback
$layers = array (
'mapnik' => 'https://tile.openstreetmap.org', // e.g. https://tile.openstreetmap.org/16/32752/21788.png ; see: https://github.com/openstreetmap/operations/issues/737
'opencyclemap' => 'https://{s}.tile.thunderforest.com/cycle', // e.g. https://a.tile.thunderforest.com/cycle/18/128676/81699.png
'outdoors' => 'https://{s}.tile.thunderforest.com/outdoors', // e.g. https://a.tile.thunderforest.com/outdoors/18/128676/81699.png
'osopendata' => 'https://{s}.os.openstreetmap.org/sv', // e.g. https://a.os.openstreetmap.org/sv/18/128676/81699.png
// Use your cyclestreets server here as an alternative to localhost
// 'cyclestreets' => 'http://localhost/tiles/cyclestreets', // e.g. http://localhost/tiles/cyclestreets/16/32792/21588.png
);
## Other parameters
# How long tiles are kept before being considered stale
$expiryDays = 14;
# The hour (out of 24) in which clearout of stale tiles from the cache can be triggered
$garbageCollectionHour = 3;
# User agent
$userAgent = "CycleStreets tilecache at http://{$_SERVER['SERVER_NAME']}/ Contact: http://www.cyclestreets.net/contacts/";
# Fallback handling - if omitted, the first $layer will be used
$fallback = array (
// 'from' => 'to',
);
# Timeout for tile requests before fallback is tried
$timeout = 10;
# Supported scales
$scales = array (1, 1.5, 2, 3, );
# Servers supporting native retina tiles
$nativeRetinaTiles = array (
'opencyclemap' => array (2, ), // e.g. https://a.tile.thunderforest.com/cycle/18/128676/[email protected]
'outdoors' => array (2, ), // e.g. https://a.tile.thunderforest.com/outdoors/18/128676/[email protected]
);
# API key parameters
$thunderforestApiKeyString = 'apikey=' . 'YOUR_API_KEY';
$apiKeyParameters = array (
'opencyclemap' => $thunderforestApiKeyString,
'outdoors' => $thunderforestApiKeyString,
);