Commit graph

2900 commits

Author SHA1 Message Date
Vesa Luusua
064052fb25 Fix server side rendering (window was called in constructor 2018-09-14 15:15:20 +03:00
Vesa Luusua
056bba7199 Refactor search-by-map-viewport to SearchMapWithMapbox component 2018-09-14 15:15:20 +03:00
Vesa Luusua
d4393a6395 Refactor search-by-map-viewport to SearchMapWithGoogleMap component: 2018-09-14 15:15:20 +03:00
Vesa Luusua
a7b4ec2394 Move generic map utils: sdkBoundsToFixedCoordinates, hasSameSDKBounds 2018-09-14 15:15:20 +03:00
Vesa Luusua
dcabf399b8 Fix: SearchMapWithGoogleMap was missing sdk coordinate helpers
and there was unnecessary variables
2018-09-14 15:15:19 +03:00
Vesa Luusua
1baea00dad Fix: make sure that map refreshment token is changed after reattaching
the map.
2018-09-14 15:15:19 +03:00
Vesa Luusua
13f5e9b79d Fix price and group label update cycle when refresh token is passed in
This has likely worked in Google Map version due to the fact that it uses
separate Overlay component wrapper on top of labels.
2018-09-14 15:15:19 +03:00
Vesa Luusua
e474d74930 Refactor Google Maps integration to its own sub component on SearchMap 2018-09-14 15:15:19 +03:00
Kimmo Puputti
01623f3c4c Move default predictions out of the geocoder files 2018-09-14 15:15:18 +03:00
Kimmo Puputti
e051ea3f31 Reorganize maps configuration 2018-09-14 15:15:18 +03:00
Vesa Luusua
b12500072e Fix double click on top of infocard 2018-09-14 15:15:18 +03:00
Vesa Luusua
488d9ce3b1 Mapbox: mobile layout rerenders itself after complete data. 2018-09-14 15:15:18 +03:00
Hannu Lyytikainen
60b39bcfe6 Check prediction place type for bounds size 2018-09-14 15:15:17 +03:00
Hannu Lyytikainen
acad7d6ff2 Generate bounds if they are missing 2018-09-14 15:15:17 +03:00
Hannu Lyytikainen
3e6667da48 Fix formatting 2018-09-14 15:15:17 +03:00
Hannu Lyytikainen
5acf34b57a Convert bounds passed to Mapbox
Convert SW longitude for bounds that cross the antimeridian.
2018-09-14 15:15:17 +03:00
Hannu Lyytikainen
e7f2dc0ea1 Fix longitudes outside -180 and 180 2018-09-14 15:15:16 +03:00
Hannu Lyytikainen
4e6987644f Add zoom controls to Mapbox 2018-09-14 15:15:16 +03:00
Hannu Lyytikainen
d07e3a92db Remove fullscreen control from maps
Reproduces the changes of commit
675135a7f2 after being overridden in a
rebase.
2018-09-14 15:15:16 +03:00
Vesa Luusua
8da6c65e89 Create and use SearchMapWithMapbox component instead of SearchMapWithGoogleMap 2018-09-14 15:15:15 +03:00
Vesa Luusua
0fff68b9a3 Google related bounds tied to SearchMapWithGoogleMap implementation 2018-09-14 15:15:15 +03:00
Vesa Luusua
3807e58584 Refactor Google Maps integration to its own sub component on SearchMap 2018-09-14 15:15:15 +03:00
Vesa Luusua
da997c8bd4 LocationAutocomplete using Mapbox 2018-09-14 15:15:14 +03:00
Vesa Luusua
c66f358aec Fix: fuzzy location did not change after listing location changed. 2018-09-14 15:02:43 +03:00
Vesa Luusua
fcbffabbe5 Fix obfuscatedCoordinatesImpl helper (it returned values outside of offset radius) 2018-09-14 14:40:16 +03:00
Vesa Luusua
e2b8211148 Fix: prevent flash of default predictions when selecting by enter 2018-09-13 13:24:15 +03:00
Vesa Luusua
3154333558 Fix: selecting with enter key prevented while fetching predictions 2018-09-12 11:30:41 +03:00
Vesa Luusua
5cceade516 Reduce small character queries on LocationAutocompleteInput 2018-09-05 17:40:37 +03:00
Vesa Luusua
629f5b66d1 Fix locationautocomplete events that cause clicks to underlying elements. 2018-09-05 16:54:48 +03:00
Kimmo Puputti
dc3cfcdc7d Move default predictions out of the geocoder files 2018-08-24 14:16:54 +03:00
Kimmo Puputti
46a8e2bbfc Require an env var to show default searches 2018-08-24 14:16:54 +03:00
Kimmo Puputti
669e1a7edb Reorganize maps configuration 2018-08-24 14:16:54 +03:00
Hannu Lyytikainen
d4d4ac90fa Disable default predictions in listing wizard 2018-08-22 11:25:42 +03:00
Hannu Lyytikainen
4c9885f654 Add a prop for disabling default predictions 2018-08-22 11:21:36 +03:00
Hannu Lyytikainen
330eb2b8b0 Improve window availability check 2018-08-21 16:12:55 +03:00
Hannu Lyytikainen
e14cd98903 Add path check for search page 2018-08-21 12:00:01 +03:00
Kimmo Puputti
29056e545c Delay Mapbox lib usage to fix server side rendering 2018-08-20 14:51:09 +03:00
Hannu Lyytikäinen
920d11b5ba
Merge pull request #902 from sharetribe/availability-env-var
Availability environment variable
2018-08-17 13:11:29 +03:00
Hannu Lyytikäinen
324baa3bda
Merge pull request #901 from sharetribe/max-time-slots
Availability improvements
2018-08-17 13:11:17 +03:00
Hannu Lyytikainen
09991d2616 Add error message for time slot request errors 2018-08-17 13:09:35 +03:00
Hannu Lyytikainen
e64f0e7d58 Return second time slots reques promise
Return the nested promise so that errors from it will be caucht in the
catch block of the outer promise.
2018-08-17 13:09:35 +03:00
Hannu Lyytikainen
a293c144fe Put availability behind an env varaible 2018-08-16 17:45:23 +03:00
Hannu Lyytikainen
27462b5433 Remove date time from time slots request 2018-08-16 16:40:56 +03:00
Hannu Lyytikainen
30a49d7e18 Add a second time slots query
In case max bookable day count exceeds 90 days, fetch a second batch of
time slots.
2018-08-16 15:39:51 +03:00
Kimmo Puputti
675135a7f2 Remove Google Maps fullscreen control 2018-08-16 11:41:14 +03:00
Kimmo Puputti
35ffe2e67c Fix hidden "Powered by Google" text in Mobile Safari 2018-08-16 10:58:46 +03:00
Kimmo Puputti
81c9719baa Unify default search data and avoid place details API call 2018-08-15 16:31:36 +03:00
Kimmo Puputti
b9ed883ddc Use a functional component 2018-08-15 11:43:15 +03:00
Kimmo Puputti
48714c5de8 Use Google map by default 2018-08-15 11:43:05 +03:00
Kimmo Puputti
a27217609c Add Mapbox map index file 2018-08-14 15:07:22 +03:00