File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1257,7 +1257,7 @@ public function setHeight( $height ) {
1257
1257
* @return void
1258
1258
*/
1259
1259
public function setUnitsMetric () {
1260
- $ this ->setUnits ( 'metric ' );
1260
+ $ this ->setUnits ( 'METRIC ' );
1261
1261
}
1262
1262
1263
1263
/**
@@ -1266,7 +1266,7 @@ public function setUnitsMetric() {
1266
1266
* @return void
1267
1267
*/
1268
1268
public function setUnitsImperial () {
1269
- $ this ->setUnits ( 'imperial ' );
1269
+ $ this ->setUnits ( 'IMPERIAL ' );
1270
1270
}
1271
1271
1272
1272
/**
@@ -1969,7 +1969,7 @@ function getMapJS() {
1969
1969
$ request_options .= sprintf ( "\t\ttravelMode: google.maps.DirectionsTravelMode.%s, \n" , strtoupper ( $ this ->directions ->request_options ['travelMode ' ] ) );
1970
1970
break ;
1971
1971
case 'units ' :
1972
- $ request_options .= sprintf ( "\t\tunitSystem: google.maps.DirectionsUnitSystem.%s, \n" , isset ( $ this ->directions ->request_options ['units ' ] ) ?: $ this ->units );
1972
+ $ request_options .= sprintf ( "\t\tunitSystem: google.maps.DirectionsUnitSystem.%s, \n" , isset ( $ this ->directions ->request_options ['units ' ] ) ? $ this -> directions -> request_options [ ' units ' ] : $ this ->units );
1973
1973
break ;
1974
1974
default :
1975
1975
$ request_options .= sprintf ( "\t\t%s:%s, \n" , $ request_option , $ this ->phpToJs ( $ request_value ) );
@@ -2462,4 +2462,5 @@ function enablePlacesAutocomplete( array $options = array() ) {
2462
2462
$ this ->autocomplete_options = $ options ;
2463
2463
}
2464
2464
}
2465
+
2465
2466
}
You can’t perform that action at this time.
0 commit comments