You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
3.6 KiB
106 lines
3.6 KiB
<?php
|
|
// 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)
|
|
$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/master/{{ categoryId }}.json',
|
|
),
|
|
);
|
|
|
|
// 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 the Overpass API
|
|
$config['overpassUrl'] = array(
|
|
'//overpass-api.de/api/interpreter',
|
|
'//api.openstreetmap.fr/oapi/interpreter',
|
|
);
|
|
|
|
// 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;
|
|
|
|
// 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' => '//{s}.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,
|
|
),
|
|
);
|
|
|
|
// List of available user interface languages
|
|
$languages = array(
|
|
"en", // English
|
|
"ast", // Asturian
|
|
"ca", // Catalan
|
|
"cs", // Czech
|
|
"da", // Danish
|
|
"de", // German
|
|
"el", // Greek
|
|
"es", // Spanish
|
|
"et", // Estonian
|
|
"fr", // French
|
|
"hu", // Hungarian
|
|
"it", // Italian
|
|
"ja", // Japanese
|
|
"nl", // Dutch
|
|
"pl", // Polish
|
|
"pt", // Portugese
|
|
"pt-br", // Portugese (Brazil)
|
|
"ro", // Romanian
|
|
"ru", // Russian
|
|
"sr", // Serbian
|
|
"uk", // Ukrainian
|
|
);
|