@woosmap/ui 3.168.0 → 3.169.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "3.168.0",
3
+ "version": "3.169.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -49,14 +49,14 @@ export default class DistanceDemo extends Component {
49
49
  const defaultLang = languages.find((item) => lang.startsWith(item.value));
50
50
 
51
51
  this.defaultOrigin = {
52
- public_id: 'milano',
53
- description: 'Milan, Milano, Italie',
54
- location: { lat: 45.46419429317345, lng: 9.189634535335927 },
52
+ public_id: 'eastham',
53
+ description: 'Eastham Village, Merseyide, United Kingdom',
54
+ location: { lat: 53.31446402615734, lng: -2.9599091366015955 },
55
55
  };
56
56
  this.defaultDestination = {
57
- public_id: 'linate',
58
- description: 'Linate, Peschiera Borromeo, Italie',
59
- location: { lat: 45.446776949835964, lng: 9.272510686783079 },
57
+ public_id: 'liverpool',
58
+ description: 'Liverpool John Lennon Airport, United Kingdom',
59
+ location: { lat: 53.333599, lng: -2.84972 },
60
60
  };
61
61
 
62
62
  this.state = {
@@ -180,7 +180,7 @@ export default class DistanceDemo extends Component {
180
180
  destination: `${destinationLocation.lat},${destinationLocation.lng}`,
181
181
  language,
182
182
  units: unit.value,
183
- method: method.value,
183
+ method: travelMode.value === 'driving' ? method.value : 'distance',
184
184
  mode: travelMode.value,
185
185
  alternatives,
186
186
  };