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

  1. <?php
  2. // Repositories from which to read the categories.
  3. // repositoryUrl and categoryUrl are twig templates, which take the following input values:
  4. // {{ repositoryId }} id of the repository
  5. // {{ categoryId }} id of the category (not for repositoryUrl)
  6. $repositories = array(
  7. 'default' => array(
  8. 'path' => 'node_modules/openstreetbrowser-categories-main',
  9. 'type' => 'dir',
  10. // public URL of repository
  11. 'repositoryUrl' => 'https://github.com/example/categories',
  12. // public URL of source of a category in repository
  13. 'categoryUrl' => 'https://github.com/example/categories/tree/master/{{ categoryId }}.json',
  14. ),
  15. );
  16. // Repositories which should be included from gitea
  17. $repositoriesGitea = array(
  18. 'path' => "/home/gitea/gitea-repositories",
  19. 'url' => "https://www.openstreetbrowser.org/dev",
  20. );
  21. // Set to true to reload categories on every page visit.
  22. $config['categoriesAlwaysReload'] = true;
  23. // (optional) URL, which points to the OpenStreetBrowser Editor
  24. #$config['urlCategoriesEditor'] = 'editor/';
  25. // URL of the Overpass API
  26. $config['overpassUrl'] = array(
  27. '//overpass-api.de/api/interpreter',
  28. '//api.openstreetmap.fr/oapi/interpreter',
  29. );
  30. // Location of the initial view if no IP-location can be resolved. 'zoom' is optional.
  31. $config['defaultView'] = array('lat' => 51.505, 'lon' => -0.09, 'zoom' => 18);
  32. // Shall the initial map view be retrieved via IP location? (default: true)
  33. $config['checkIpLocation'] = true;
  34. // maxZoom (tiles will be scaled if higher than native zoom level). Default: 19.
  35. $config['maxZoom'] = 19;
  36. // Available base maps; first is default
  37. $config['baseMaps'] = array(
  38. array(
  39. 'id' => 'osm-mapnik',
  40. 'name' => 'OSM Default',
  41. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
  42. 'url' => '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
  43. 'maxZoom' => 19,
  44. ),
  45. array(
  46. 'id' => 'osm-cyle',
  47. 'name' => 'OSM CycleMap',
  48. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://www.thunderforest.com/">Andy Allan</a>',
  49. 'url' => '//{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=',
  50. 'maxZoom' => 18,
  51. ),
  52. array(
  53. 'id' => 'opentopomap',
  54. 'name' => 'OpenTopoMap',
  55. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://opentopomap.org/">OpenTopoMap</a>',
  56. 'url' => '//{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
  57. 'maxZoom' => 17,
  58. ),
  59. array(
  60. 'id' => 'transportmap',
  61. 'name' => 'Transport Map',
  62. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://www.thunderforest.com/">Andy Allan</a>',
  63. 'url' => '//{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey=',
  64. 'maxZoom' => 20,
  65. ),
  66. array(
  67. 'id' => 'hot',
  68. 'name' => 'Humanitarian',
  69. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://hot.openstreetmap.org/">Humanitarian OpenStreetMap Team</a>',
  70. 'url' => '//tile-{s}.openstreetmap.fr/hot/{z}/{x}/{y}.png',
  71. 'maxZoom' => 20,
  72. ),
  73. );
  74. // List of available user interface languages
  75. $languages = array(
  76. "en", // English
  77. "ast", // Asturian
  78. "ca", // Catalan
  79. "cs", // Czech
  80. "da", // Danish
  81. "de", // German
  82. "el", // Greek
  83. "es", // Spanish
  84. "et", // Estonian
  85. "fr", // French
  86. "hu", // Hungarian
  87. "it", // Italian
  88. "ja", // Japanese
  89. "nl", // Dutch
  90. "pl", // Polish
  91. "pt", // Portugese
  92. "pt-br", // Portugese (Brazil)
  93. "ro", // Romanian
  94. "ru", // Russian
  95. "sr", // Serbian
  96. "uk", // Ukrainian
  97. );