Commit graph

70 commits

Author SHA1 Message Date
Jenni Nurmi
601706cc5f Use react-intl through util file 2019-08-29 16:37:47 +03:00
Jenni Nurmi
34c4903bad Don't use componentWillReceiveProps related to SearchMap component 2019-08-29 15:15:57 +03:00
Jenni Nurmi
0aca4567c2 Update Prettier to 1.15.3 2018-12-05 11:07:47 +02:00
Hannu Lyytikainen
f177f6a6ea Remove translation handling for tests
Translations are passed as props so the handling for translations in
tests is already done in test-helpers.js.
2018-11-15 10:14:39 +02:00
Hannu Lyytikainen
aa4ff59618 Pass translations to ReusableMapContainer in props 2018-11-15 10:14:39 +02:00
Vesa Luusua
2bf0500fdf Remove unnecessary Google Maps refs from docs and code comments 2018-09-14 16:02:37 +03:00
Vesa Luusua
75d8dab81f Fix: reduce label repaints and flickering on Google Map version 2018-09-14 15:15:23 +03:00
Vesa Luusua
d7d4a3f328 Fix: improve SearchMapWithGoogleMap error handling 2018-09-14 15:15:23 +03:00
Vesa Luusua
801c54c1e4 Fix: SearchMapWithGoogleMap did not have container in state. 2018-09-14 15:15:22 +03:00
Vesa Luusua
94f3712256 Mobile chrome passes touch events to hidden map. 2018-09-14 15:15:22 +03:00
Vesa Luusua
a8ee999bf0 SearchMapWithMapbox: fix pinch zoom on mobile Safari 2018-09-14 15:15:22 +03:00
Vesa Luusua
ab6cac9edc Rename onIdle to onMapMoveEnd and remove unnecessary mobile map opened info. 2018-09-14 15:15:21 +03:00
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
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
e474d74930 Refactor Google Maps integration to its own sub component on SearchMap 2018-09-14 15:15:19 +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
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
c66f358aec Fix: fuzzy location did not change after listing location changed. 2018-09-14 15:02:43 +03:00
Kimmo Puputti
669e1a7edb Reorganize maps configuration 2018-08-24 14:16:54 +03:00
Kimmo Puputti
675135a7f2 Remove Google Maps fullscreen control 2018-08-16 11:41:14 +03:00
Vesa Luusua
1d2c816a11 ReusableMapContainer: pass-in routing related function through props 2018-08-03 14:24:38 +03:00
Vesa Luusua
7f0966165e Use ReusableMapContainer 2018-08-02 23:59:33 +03:00
Vesa Luusua
bb4a47d970 Fix: render only when mountNode is present 2018-08-02 00:11:48 +03:00
Vesa Luusua
7e79fe3dc3
Revert "Add Intl to off-SPA rendering" 2018-08-01 23:37:18 +03:00
Vesa Luusua
5e7d0ca79c Add Intl to off-SPA rendering 2018-08-01 23:16:58 +03:00
Vesa Luusua
bca90142b8 Add reuseableContainerClassName to proptypes definition and refactor the order 2018-08-01 16:40:22 +03:00
Vesa Luusua
5a6f2361cd Reusable map container 2018-08-01 14:49:38 +03:00
Vesa Luusua
049f6a7f37 import lodash per file to reduce bundle size 2018-05-18 15:24:09 +03:00
Kimmo Puputti
df188aa3ea Change search map controls for visibility
- Move zoom controls to top left
- Hide street view button from bottom right
2018-04-11 14:56:07 +03:00
Kimmo Puputti
fa7c813b39 Fix google lib check for server rendering 2018-03-22 11:17:12 +02:00
Vesa Luusua
a027671573 Remove throw error when google lib is missing 2018-03-21 16:21:19 +02:00
Vesa Luusua
28e339ad6a
Revert "Revert "onIdle should not be called without ref to actual map"" 2018-03-20 15:50:26 +02:00
Vesa Luusua
77b16410de
Revert "onIdle should not be called without ref to actual map" 2018-03-20 15:36:33 +02:00
Vesa Luusua
f1362896c9 onIdle should not be called without ref to actual map 2018-03-20 14:40:19 +02:00
Mikko Koski
1fdc8d404d Highlight hovered listing on map 2018-03-09 14:47:26 +02:00
Kimmo Puputti
709ddf61d8 Filter out listings without location for the SearchMap 2018-03-05 14:18:41 +02:00
Kimmo Puputti
f401363940 Improve the coordinate obfuscation
- Use a proper algorithm to offset correctly in different latitudes
- Only configure the offset in meters, infer circle radius from that
2018-02-08 10:31:23 +02:00
Kimmo Puputti
3aa1d74e30 Improve config prop types check 2018-02-02 14:07:53 +02:00
Kimmo Puputti
505cafdb7a Improve coordinate obfuscation
Now the obfuscation results are memoized so that the results stay
stable for each listing id.
2018-02-02 12:04:10 +02:00
Kimmo Puputti
b8b8b94375 Obfuscate SearchMap listing coordinates 2018-02-01 16:11:57 +02:00