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.

84 lines
2.8 KiB

  1. <?php
  2. // Directory from which to read the categories.
  3. $config['categoriesDir'] = 'node_modules/openstreetbrowser-categories-main';
  4. // Set to true to reload categories on every page visit.
  5. $config['categoriesAlwaysReload'] = true;
  6. // URL of the Overpass API
  7. $config['overpassUrl'] = array(
  8. '//overpass-api.de/api/interpreter',
  9. '//api.openstreetmap.fr/oapi/interpreter',
  10. );
  11. // Location of the initial view if no IP-location can be resolved. 'zoom' is optional.
  12. $config['defaultView'] = array('lat' => 51.505, 'lon' => -0.09, 'zoom' => 18);
  13. // Shall the initial map view be retrieved via IP location? (default: true)
  14. $config['checkIpLocation'] = true;
  15. // maxZoom (tiles will be scaled if higher than native zoom level). Default: 19.
  16. $config['maxZoom'] = 19;
  17. // Available base maps; first is default
  18. $config['baseMaps'] = array(
  19. array(
  20. 'id' => 'osm-mapnik',
  21. 'name' => 'OSM Default',
  22. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
  23. 'url' => '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
  24. 'maxZoom' => 19,
  25. ),
  26. array(
  27. 'id' => 'osm-cyle',
  28. 'name' => 'OSM CycleMap',
  29. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://www.thunderforest.com/">Andy Allan</a>',
  30. 'url' => '//{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=',
  31. 'maxZoom' => 18,
  32. ),
  33. array(
  34. 'id' => 'opentopomap',
  35. 'name' => 'OpenTopoMap',
  36. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://opentopomap.org/">OpenTopoMap</a>',
  37. 'url' => '//{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
  38. 'maxZoom' => 17,
  39. ),
  40. array(
  41. 'id' => 'transportmap',
  42. 'name' => 'Transport Map',
  43. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://www.thunderforest.com/">Andy Allan</a>',
  44. 'url' => '//{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey=',
  45. 'maxZoom' => 20,
  46. ),
  47. array(
  48. 'id' => 'hot',
  49. 'name' => 'Humanitarian',
  50. 'attribution' => '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Tiles: <a href="http://hot.openstreetmap.org/">Humanitarian OpenStreetMap Team</a>',
  51. 'url' => '//tile-{s}.openstreetmap.fr/hot/{z}/{x}/{y}.png',
  52. 'maxZoom' => 20,
  53. ),
  54. );
  55. // List of available user interface languages
  56. $languages = array(
  57. "ast", // Asturian
  58. "ca", // Catalan
  59. "cs", // Czech
  60. "da", // Danish
  61. "de", // German
  62. "el", // Greek
  63. "en", // English
  64. "es", // Spanish
  65. "et", // Estonian
  66. "fr", // French
  67. "hu", // Hungarian
  68. "it", // Italian
  69. "ja", // Japanese
  70. "nl", // Dutch
  71. "pl", // Polish
  72. "pt-br", // Portugese (Brazil)
  73. "ro", // Romanian
  74. "ru", // Russian
  75. "sr", // Serbian
  76. "uk", // Ukrainian
  77. );