@@ -9,7 +9,6 @@ function labSetupReachabilityPlugin(objExtraOptions) {
9
9
// First set up the standard options
10
10
var options = {
11
11
apiKey : '58d904a497c67e00015b45fc6862cde0265d4fd78ec660aa83220cdb' ,
12
- ajaxRequestFn : labAjax ,
13
12
expandButtonStyleClass : 'reachability-control-expand-button fa fa-bullseye' ,
14
13
expandButtonContent : '' ,
15
14
collapseButtonContent : '' ,
@@ -22,14 +21,14 @@ function labSetupReachabilityPlugin(objExtraOptions) {
22
21
distanceButtonStyleClass : 'fa fa-road' ,
23
22
timeButtonContent : '' ,
24
23
timeButtonStyleClass : 'fa fa-clock-o' ,
25
- drivingButtonContent : '' ,
26
- drivingButtonStyleClass : 'fa fa-car' ,
27
- cyclingButtonContent : '' ,
28
- cyclingButtonStyleClass : 'fa fa-bicycle' ,
29
- walkingButtonContent : '' ,
30
- walkingButtonStyleClass : 'fa fa-male' ,
31
- accessibilityButtonContent : '' ,
32
- accessibilityButtonStyleClass : 'fa fa-wheelchair-alt' ,
24
+ travelModeButton1Content : '' ,
25
+ travelModeButton1StyleClass : 'fa fa-car' ,
26
+ travelModeButton2Content : '' ,
27
+ travelModeButton2StyleClass : 'fa fa-bicycle' ,
28
+ travelModeButton3Content : '' ,
29
+ travelModeButton3StyleClass : 'fa fa-male' ,
30
+ travelModeButton4Content : '' ,
31
+ travelModeButton4StyleClass : 'fa fa-wheelchair-alt' ,
33
32
markerFn : labReachabilityMarker
34
33
}
35
34
@@ -67,11 +66,24 @@ function labReachabilityMarker(latLng, travelMode, measure) {
67
66
case 'driving-car' :
68
67
faClass = 'fa fa-car'
69
68
break ;
69
+ case 'driving-hgv' :
70
+ faClass = 'fa fa-truck'
71
+ break ;
70
72
case 'cycling-regular' :
73
+ case 'cycling-road' :
74
+ case 'cycling-mountain' :
75
+ case 'cycling-electric' :
71
76
faClass = 'fa fa-bicycle'
72
77
break ;
73
- default :
78
+ case 'foot-walking' :
79
+ case 'foot-hiking' :
74
80
faClass = 'fa fa-male'
81
+ break ;
82
+ case 'wheelchair' :
83
+ faClass = 'fa fa-wheelchair-alt'
84
+ break ;
85
+ default :
86
+ faClass = 'fa fa-dot-circle-o'
75
87
}
76
88
77
89
var customIcon = L . divIcon ( { className : faClass + ' lab-reachability-marker' , iconAnchor : [ 12 , 12 ] } ) ;
0 commit comments