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.

109 lines
3.7 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. // cache directory. Must be writeable by the webserver!
  37. #$config['cache'] = 'cache';
  38. // Available base maps; first is default
  39. $config['baseMaps'] = array(
  40. array(
  41. 'id' => 'osm-mapnik',
  42. 'name' => 'OSM Default',
  43. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
  44. 'url' => '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
  45. 'maxZoom' => 19,
  46. ),
  47. array(
  48. 'id' => 'osm-cyle',
  49. 'name' => 'OSM CycleMap',
  50. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://www.thunderforest.com/">Andy Allan</a>',
  51. 'url' => '//{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=',
  52. 'maxZoom' => 18,
  53. ),
  54. array(
  55. 'id' => 'opentopomap',
  56. 'name' => 'OpenTopoMap',
  57. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://opentopomap.org/">OpenTopoMap</a>',
  58. 'url' => '//{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
  59. 'maxZoom' => 17,
  60. ),
  61. array(
  62. 'id' => 'transportmap',
  63. 'name' => 'Transport Map',
  64. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://www.thunderforest.com/">Andy Allan</a>',
  65. 'url' => '//{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey=',
  66. 'maxZoom' => 20,
  67. ),
  68. array(
  69. 'id' => 'hot',
  70. 'name' => 'Humanitarian',
  71. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://hot.openstreetmap.org/">Humanitarian OpenStreetMap Team</a>',
  72. 'url' => '//tile-{s}.openstreetmap.fr/hot/{z}/{x}/{y}.png',
  73. 'maxZoom' => 20,
  74. ),
  75. );
  76. // List of available user interface languages
  77. $languages = array(
  78. "en", // English
  79. "ast", // Asturian
  80. "ca", // Catalan
  81. "cs", // Czech
  82. "da", // Danish
  83. "de", // German
  84. "el", // Greek
  85. "es", // Spanish
  86. "et", // Estonian
  87. "fr", // French
  88. "hu", // Hungarian
  89. "it", // Italian
  90. "ja", // Japanese
  91. "nl", // Dutch
  92. "pl", // Polish
  93. "pt", // Portugese
  94. "pt-br", // Portugese (Brazil)
  95. "ro", // Romanian
  96. "ru", // Russian
  97. "sr", // Serbian
  98. "uk", // Ukrainian
  99. );