]> git.openstreetmap.org Git - nominatim-ui.git/blob - dist/config.defaults.js
Rebundle latest version
[nominatim-ui.git] / dist / config.defaults.js
1 // You can overwrite any defaults in dist/theme/config.theme.js (see
2 // *.js.example file in that directory)
3
4 let Nominatim_Config = {
5   Page_Title: 'Nominatim Demo',
6
7   // Where Nominatim API runs. Remember to add port if needed and trailing slash.
8   Nominatim_API_Endpoint: 'http://localhost/nominatim/',
9   // Alternatively provide a function callback
10   // Nominatim_API_Endpoint: function (endpoint) {
11   //   var url = 'http://localhost/nominatim/';
12   //   if (endpoint) { url += endpoint + '.php' };
13   //   return url;
14   // }
15
16   // Additional request headers for Nominatim API.
17   Nominatim_API_Endpoint_Headers: {},
18
19   // Additional query parameters for Nominatim API.
20   Nominatim_API_Endpoint_Params: {},
21
22   // If database has no search index, then hide search page
23   Reverse_Only: false,
24
25   // relative path or full URL
26   Images_Base_Url: 'mapicons/',
27
28   // If the API should return polygons to be displayed on the map
29   Search_AreaPolygons: true,
30
31   // ---- MAP ----
32   Reverse_Default_Search_Zoom: 18,
33   Map_Default_Lat: 20.0,
34   Map_Default_Lon: 0.0,
35   Map_Default_Zoom: 2,
36   // https://leafletjs.com/reference.html#map-fitbounds
37   // Example: [[0,-180], [90,180]]
38   // If set then _Lat, _Lon, _Zoom have no effect
39   Map_Default_Bounds: null,
40
41   // For what {x}, {y} etc stand for see
42   // https://leafletjs.com/reference-1.9.1.html#tilelayer
43   Map_Tile_URL: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
44
45   // Can be text or HTML. To hide set to ''
46   Map_Tile_Attribution: '<a href="https://osm.org/copyright">OpenStreetMap contributors</a>'
47 };