-
Notifications
You must be signed in to change notification settings - Fork 33
/
config.js
51 lines (49 loc) · 2.73 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Webpack will replace this file with config-local.js if it exists
*/
const config = {
// the url of the GraphHopper routing backend, either use graphhopper.com or point it to your own GH instance
routingApi: 'https://graphhopper.com/api/1/',
// the url of the geocoding backend, either use graphhopper.com or point it to another geocoding service. use an empty string to disable the address search
geocodingApi: 'https://graphhopper.com/api/1/',
// the tile layer used by default, see MapOptionsStore.ts for all options
defaultTiles: 'OpenStreetMap',
// various api keys used for the GH backend and the different tile providers
keys: {
graphhopper: 'bfb9d728-3732-4542-9e92-f638ac1c9f3a',
maptiler: 'missing_api_key',
omniscale: 'missing_api_key',
thunderforest: 'missing_api_key',
kurviger: 'missing_api_key',
},
// if true there will be an option to enable the GraphHopper routing graph and the urban density visualization in the layers menu
routingGraphLayerAllowed: false,
// parameters used for the routing request generation
request: {
details: [
'road_class',
'road_environment',
'road_access',
'surface',
'max_speed',
'average_speed',
'toll',
'track_type',
'country',
],
},
// Use 'profiles' to define which profiles are visible and how. Useful if the /info endpoint contains too many or too "ugly" profile
// names or in the wrong order. The key of each profile will be used as name and the given fields will overwrite the fields of the
// default routing request. The following example is tuned towards the GraphHopper Directions API. If you have an own server you might want to adapt it.
//
// profiles: {
// car:{}, small_truck:{}, truck:{}, scooter:{},
// foot:{ details: ['foot_network', 'access_conditional', 'foot_conditional', 'hike_rating'] }, hike:{ details: ['foot_network', 'access_conditional', 'foot_conditional', 'hike_rating' ] },
// bike:{ details: ['get_off_bike', 'bike_network', 'access_conditional', 'bike_conditional', 'mtb_rating' ] }, mtb:{ details: ['get_off_bike', 'bike_network', 'access_conditional', 'bike_conditional', 'mtb_rating'] }, racingbike:{ details: ['get_off_bike', 'bike_network', 'access_conditional', 'bike_conditional', 'mtb_rating'] },
// }
//
// E.g. the 'bike' entry will add a "bike" profile for which we send a request with the specified 'details' parameter. You can even change the profile itself when you specify
// bike: { profile: 'raw_bike', ... }
}
// this is needed for jest (with our current setup at least)
if (module) module.exports = config