-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathconfig.js
More file actions
74 lines (71 loc) · 3.66 KB
/
config.js
File metadata and controls
74 lines (71 loc) · 3.66 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/**
* 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: 'efc33bcc-a9e6-450b-9221-c52c5bf57de3',
maptiler: 'missing_api_key',
omniscale: 'missing_api_key',
thunderforest: 'missing_api_key',
kurviger: 'missing_api_key',
tracestrack: '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', 'sidewalk', 'urban_density'] }, hike:{ details: ['foot_network', 'access_conditional', 'foot_conditional', 'hike_rating', 'sidewalk', 'urban_density' ] },
// bike:{ details: ['get_off_bike', 'bike_network', 'access_conditional', 'bike_conditional', 'mtb_rating', 'cycleway', 'urban_density' ] }, mtb:{ details: ['get_off_bike', 'bike_network', 'access_conditional', 'bike_conditional', 'mtb_rating', 'cycleway', 'urban_density'] }, racingbike:{ details: ['get_off_bike', 'bike_network', 'access_conditional', 'bike_conditional', 'mtb_rating', 'cycleway', 'urban_density'] },
// }
//
// 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', ... }
// You can 'collapse' or group certain profiles to reduce the number of profiles in the panel. Instead they're listed in the settings but still a profile icon is shown.
// Note: the name of the group must be the default option for this group.
profile_group_mapping: {},
// profile_group_mapping: {
// car: {
// options: [
// { profile: 'car' },
// { profile: 'car_avoid_motorway' },
// { profile: 'car_avoid_ferry' },
// { profile: 'car_avoid_toll' }
// ]
// },
// bike: {
// options: [
// { profile: 'bike' },
// { profile: 'mtb' },
// { profile: 'racingbike' },
// { profile: 'ecargobike' }
// ]
// }
// }
}
// this is needed for jest (with our current setup at least)
if (typeof module !== 'undefined') module.exports = config