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', '//api.openstreetmap.fr/oapi/interpreter', ); // 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' => '© OpenStreetMap contributors', 'url' => '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', 'maxZoom' => 19, ), array( 'id' => 'osm-cyle', 'name' => 'OSM CycleMap', 'attribution' => '© OpenStreetMap contributors, Tiles: Andy Allan', 'url' => '//{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=', 'maxZoom' => 18, ), array( 'id' => 'opentopomap', 'name' => 'OpenTopoMap', 'attribution' => '© OpenStreetMap contributors, Tiles: OpenTopoMap', 'url' => '//{s}.tile.opentopomap.org/{z}/{x}/{y}.png', 'maxZoom' => 17, ), array( 'id' => 'transportmap', 'name' => 'Transport Map', 'attribution' => '© OpenStreetMap contributors, Tiles: Andy Allan', 'url' => '//{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey=', 'maxZoom' => 20, ), array( 'id' => 'hot', 'name' => 'Humanitarian', 'attribution' => '© OpenStreetMap contributors, Tiles: Humanitarian OpenStreetMap Team', '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 "da", // Danish "de", // German "el", // Greek "es", // Spanish "et", // Estonian "fr", // French "hu", // Hungarian "it", // Italian "ja", // Japanese "nl", // Dutch "oc", // Occitan "pl", // Polish "pt", // Portuguese "pt-br", // Portuguese (Brazil) "ro", // Romanian "ru", // Russian "sr", // Serbian "uk", // Ukrainian "nb", // BokmÃ¥l (Norwegian) "tr", // Turkish "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'));