-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathconf.php-dist
More file actions
159 lines (143 loc) · 5.18 KB
/
Copy pathconf.php-dist
File metadata and controls
159 lines (143 loc) · 5.18 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php
$config['app'] = [
'name' => 'OpenStreetBrowser',
'url' => 'https://openstreetbrowser.org',
'contact' => 'openstreetbrowser@example.com',
];
// Repositories from which to read the categories.
// repositoryUrl and categoryUrl are twig templates, which take the following input values:
// {{ repositoryId }} id of the repository
// {{ categoryId }} id of the category (not for repositoryUrl)
// {{ categoryFormat }} format of the file (json or yaml)
// {{ branchId }} id of the branch (not for repositoryUrl)
$repositories = array(
'default' => array(
'path' => 'node_modules/openstreetbrowser-categories-main',
'type' => 'dir',
// public URL of repository
'repositoryUrl' => 'https://github.com/example/categories',
// public URL of source of a category in repository
'categoryUrl' => 'https://github.com/example/categories/tree/{{ branchId }}/{{ categoryId }}.{{ categoryFormat }}',
),
);
// Repositories which should be included from gitea
#$repositoriesGitea = array(
# 'path' => "/home/gitea/gitea-repositories",
# 'url' => "https://www.openstreetbrowser.org/dev",
#);
// Set to true to reload categories on every page visit.
$config['categoriesAlwaysReload'] = true;
// (optional) URL, which points to the OpenStreetBrowser Editor
#$config['urlCategoriesEditor'] = 'editor/';
// URL of OpenStreetMap website - change this for other services
$config['urlOpenStreetMap'] = 'https://www.openstreetmap.org';
// URL of the Overpass API
$config['overpassUrl'] = array(
'//overpass-api.de/api/interpreter',
[
'url' => '//api.openstreetmap.fr/oapi/interpreter',
'options' => [
'attribution' => '(c) OpenStreetMap contributors',
],
],
);
// Additional parameters to Overpass (e.g. timeGap)
$config['overpassOptions'] = array(
);
// Acquire a license key from https://www.maxmind.com/ and set it here
#$config['GeoLite2-LicenseKey'] = '';
// Location of the initial view if no IP-location can be resolved. 'zoom' is optional.
$config['defaultView'] = array('lat' => 51.505, 'lon' => -0.09, 'zoom' => 18);
// Shall the initial map view be retrieved via IP location? (default: true)
$config['checkIpLocation'] = true;
// maxZoom (tiles will be scaled if higher than native zoom level). Default: 19.
$config['maxZoom'] = 19;
// cache directory. Must be writeable by the webserver!
#$config['cache'] = 'cache';
// Available base maps; first is default
$config['baseMaps'] = array(
array(
'id' => 'osm-mapnik',
'name' => 'OSM Default',
'attribution' => '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
'url' => 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
'maxZoom' => 19,
),
array(
'id' => 'osm-cyle',
'name' => 'OSM CycleMap',
'attribution' => '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://www.thunderforest.com/">Andy Allan</a>',
'url' => '//{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=',
'maxZoom' => 18,
),
array(
'id' => 'opentopomap',
'name' => 'OpenTopoMap',
'attribution' => '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://opentopomap.org/">OpenTopoMap</a>',
'url' => '//{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
'maxZoom' => 17,
),
array(
'id' => 'transportmap',
'name' => 'Transport Map',
'attribution' => '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://www.thunderforest.com/">Andy Allan</a>',
'url' => '//{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey=',
'maxZoom' => 20,
),
array(
'id' => 'hot',
'name' => 'Humanitarian',
'attribution' => '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://hot.openstreetmap.org/">Humanitarian OpenStreetMap Team</a>',
'url' => '//tile-{s}.openstreetmap.fr/hot/{z}/{x}/{y}.png',
'maxZoom' => 20,
),
);
// customCategory needs a database
$db_conf = [
//'dsn' => 'mysql:host=localhost;dbname=openstreetbrowser',
'dsn' => 'sqlite:data/db.sqlite',
'username' => 'USERNAME',
'password' => 'PASSWORD',
];
// List of available user interface languages
$languages = array(
"en", // English
"ast", // Asturian
"ca", // Catalan
"cs", // Czech
"be", // Belarusian
"da", // Danish
"de", // German
"el", // Greek
"es", // Spanish
"et", // Estonian
"fr", // French
"gl", // Galician
"hu", // Hungarian
"id", // Indonesian
"it", // Italian
"ja", // Japanese
"ko", // Korean
"ml", // Malayalam
"nl", // Dutch
"oc", // Occitan
"pl", // Polish
"pt", // Portuguese
"pt-br", // Portuguese (Brazil)
"ro", // Romanian
"ru", // Russian
"sr", // Serbian
"sv", // Swedish
"uk", // Ukrainian
"nb", // Bokmål (Norwegian)
"ta", // Tamil
"th", // Thai
"tr", // Turkish
"vi", // Vietnamese
"zh-hans", // Simplified Chinese
);
// Uncomment the following lines to use a MYSQL database for session handling.
// Create database table 'sessions' as described in
// https://github.com/plepe/PHP-MySQL-Sessions/blob/master/README.md
#include "lib/modulekit/mysql-sessions/mysql.sessions.php";
#new Session(new PDO('mysql:dbname=DB', 'USER', 'PASSWORD'));