X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/66208a993ff3cef46221ab378a60d256f2445587..13445adc0d500a8c8285c9c75707f35df89d9d0e:/dist/config.defaults.js?ds=inline diff --git a/dist/config.defaults.js b/dist/config.defaults.js index ccbddfc..fa0556c 100644 --- a/dist/config.defaults.js +++ b/dist/config.defaults.js @@ -1,10 +1,17 @@ -// You can overwrite any defaults in dist/theme/config.theme.js +// You can overwrite any defaults in dist/theme/config.theme.js (see +// *.js.example file in that directory) let Nominatim_Config = { Page_Title: 'Nominatim Demo', // Where Nominatim API runs. Remember to add port if needed and trailing slash. Nominatim_API_Endpoint: 'http://localhost/nominatim/', + // Alternatively provide a function callback + // Nominatim_API_Endpoint: function (endpoint) { + // var url = 'http://localhost/nominatim/'; + // if (endpoint) { url += endpoint + '.php' }; + // return url; + // } // Additional request headers for Nominatim API. Nominatim_API_Endpoint_Headers: {}, @@ -12,6 +19,9 @@ let Nominatim_Config = { // Additional query parameters for Nominatim API. Nominatim_API_Endpoint_Params: {}, + // If database has no search index, then hide search page + Reverse_Only: false, + // relative path or full URL Images_Base_Url: 'mapicons/', @@ -25,8 +35,8 @@ let Nominatim_Config = { Map_Default_Zoom: 2, // For what {x}, {y} etc stand for see - // https://leafletjs.com/reference-1.6.0.html#tilelayer - Map_Tile_URL: 'https://{s}.tile.osm.org/{z}/{x}/{y}.png', + // https://leafletjs.com/reference-1.9.1.html#tilelayer + Map_Tile_URL: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', // Can be text or HTML. To hide set to '' Map_Tile_Attribution: 'OpenStreetMap contributors'