@tripian/react 6.0.32 → 6.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -73444,18 +73444,21 @@ var GRoute = function (_a) {
73444
73444
  origin: coordinates[0],
73445
73445
  destination: coordinates[coordinates.length - 1],
73446
73446
  waypoints: coordinates.slice(1, coordinates.length - 1).map(function (c) { return ({ location: new google.maps.LatLng(c.lat, c.lng) }); }),
73447
+ unitSystem: google.maps.UnitSystem.METRIC,
73447
73448
  }); }, [coordinates]);
73448
73449
  var optionCycling = (0, react_1.useMemo)(function () { return ({
73449
73450
  travelMode: google.maps.TravelMode.BICYCLING,
73450
73451
  origin: coordinates[0],
73451
73452
  destination: coordinates[coordinates.length - 1],
73452
73453
  waypoints: coordinates.slice(1, coordinates.length - 1).map(function (c) { return ({ location: new google.maps.LatLng(c.lat, c.lng) }); }),
73454
+ unitSystem: google.maps.UnitSystem.METRIC,
73453
73455
  }); }, [coordinates]);
73454
73456
  var optionWalking = (0, react_1.useMemo)(function () { return ({
73455
73457
  travelMode: google.maps.TravelMode.WALKING,
73456
73458
  origin: coordinates[0],
73457
73459
  destination: coordinates[coordinates.length - 1],
73458
73460
  waypoints: coordinates.slice(1, coordinates.length - 1).map(function (c) { return ({ location: new google.maps.LatLng(c.lat, c.lng) }); }),
73461
+ unitSystem: google.maps.UnitSystem.METRIC,
73459
73462
  }); }, [coordinates]);
73460
73463
  var callbackGRouteResponse = (0, react_1.useCallback)(function (result, status, travelMode) {
73461
73464
  // eslint-disable-next-line no-console