-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.js
41 lines (41 loc) · 924 Bytes
/
plugin.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
/**
* definition of plugin openrouteservice
* @type {String}
* @description settings values https://openrouteservice.org/documentation/#/reference/directions/directions/directions-service
*/
K.Plugin({
name: 'openrouteservice',
templates: {
popupUser: 'popupCursor_ors',
popupPlace: 'popupCursor_ors',
popupCursor: 'popupCursor_ors',
panelSettings: 'panelSettings_ors',
},
settings: {
"openrouteservice": {
"cacheTime": "daily", //cache response by ORS Api"
"name": "",
"key": ""
},
"public": {
"openrouteservice": {
"poisRoutes": true,
"routeTrackinfo": true,
"profile": "foot-walking",
"profiles": [
"driving-car",
//"driving-hgv",
//"cycling-regular",
//"cycling-road",
//"cycling-safe",
"cycling-mountain",
//"cycling-tour",
//"cycling-electric",
"foot-walking"
//"foot-hiking",
//"wheelchair"
]
}
}
}
});