mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-30 18:16:48 +10:00
Merge pull request #1003 from sharetribe/remove-origin-from-default-searches
Remove origin from default searches
This commit is contained in:
commit
aa8c09e43e
3 changed files with 4 additions and 5 deletions
|
|
@ -14,6 +14,8 @@ way to update this template, but currently, we follow a pattern:
|
|||
|
||||
## Upcoming version 2019-XX-XX
|
||||
|
||||
- [change] Remove `origin` parameter from `default-location-searches.js`
|
||||
[#1003](https://github.com/sharetribe/flex-template-web/pull/1003)
|
||||
- [add] Limit location autocomplete by adding an optional country parameter to geocoding call in
|
||||
both Mapbox and Google Maps integrations. Also updated Mapbox SDK to version 0.5.0.
|
||||
[#1002](https://github.com/sharetribe/flex-template-web/pull/1002)
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ const i18n = {
|
|||
};
|
||||
|
||||
// Should search results be ordered by distance to origin.
|
||||
// NOTE: If this is set to true add parameter 'origin' to every location in default-location-searches.js
|
||||
// Without the 'origin' parameter, search will not work correctly
|
||||
const sortSearchByDistance = false;
|
||||
|
||||
// API supports custom processes to be used in booking process.
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ export default [
|
|||
id: 'default-helsinki',
|
||||
predictionPlace: {
|
||||
address: 'Helsinki, Finland',
|
||||
origin: new LatLng(60.16985, 24.93837),
|
||||
bounds: new LatLngBounds(new LatLng(60.29783, 25.25448), new LatLng(59.92248, 24.78287)),
|
||||
},
|
||||
},
|
||||
|
|
@ -20,7 +19,6 @@ export default [
|
|||
id: 'default-turku',
|
||||
predictionPlace: {
|
||||
address: 'Turku, Finland',
|
||||
origin: new LatLng(60.45181, 22.26663),
|
||||
bounds: new LatLngBounds(new LatLng(60.53045, 22.38197), new LatLng(60.33361, 22.06644)),
|
||||
},
|
||||
},
|
||||
|
|
@ -28,7 +26,6 @@ export default [
|
|||
id: 'default-tampere',
|
||||
predictionPlace: {
|
||||
address: 'Tampere, Finland',
|
||||
origin: new LatLng(61.49775, 23.76095),
|
||||
bounds: new LatLngBounds(new LatLng(61.83657, 24.11838), new LatLng(61.42728, 23.5422)),
|
||||
},
|
||||
},
|
||||
|
|
@ -36,7 +33,6 @@ export default [
|
|||
id: 'default-oulu',
|
||||
predictionPlace: {
|
||||
address: 'Oulu, Finland',
|
||||
origin: new LatLng(65.01208, 25.46507),
|
||||
bounds: new LatLngBounds(new LatLng(65.56434, 26.77069), new LatLng(64.8443, 24.11494)),
|
||||
},
|
||||
},
|
||||
|
|
@ -44,7 +40,6 @@ export default [
|
|||
id: 'default-ruka',
|
||||
predictionPlace: {
|
||||
address: 'Ruka, Finland',
|
||||
origin: new LatLng(66.16546, 29.15172),
|
||||
bounds: new LatLngBounds(new LatLng(66.16997, 29.16773), new LatLng(66.16095, 29.13572)),
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue