X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/71b9066d9eed97aee7eff27a25d5c317b6f89595..235fd934dad866eee7c6c1a2428360b6c8d94696:/dist/config.defaults.js diff --git a/dist/config.defaults.js b/dist/config.defaults.js new file mode 100644 index 0000000..21e3880 --- /dev/null +++ b/dist/config.defaults.js @@ -0,0 +1,47 @@ +// 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: {}, + + // 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/', + + // If the API should return polygons to be displayed on the map + Search_AreaPolygons: true, + + // ---- MAP ---- + Reverse_Default_Search_Zoom: 18, + Map_Default_Lat: 20.0, + Map_Default_Lon: 0.0, + Map_Default_Zoom: 2, + // https://leafletjs.com/reference.html#map-fitbounds + // Example: [[0,-180], [90,180]] + // If set then _Lat, _Lon, _Zoom have no effect + Map_Default_Bounds: null, + + // For what {x}, {y} etc stand for see + // 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' +};