449 Commits

Author SHA1 Message Date
Michael Diego
37c34ad663
Update package.json 1.1.5 2019-09-20 19:45:46 +02:00
Kevin Ramsunder
59290615be Add shouldUnregisterMapOnUnmount prop to persist map object on unmount (#759) 2019-09-20 19:43:04 +02:00
Eric Neo
260c6d1c76 Add prop 'onDragEnd' (#754) 2019-09-20 19:42:29 +02:00
Jeffrey Cherewaty
9f0d113463 Move prop-types to dependencies (#769) 2019-09-20 19:41:47 +02:00
Joe Maffei
f5bb716291 Add UNSAFE_ prefix to deprecated lifecycle methods (#778)
* add UNSAFE_ prefix to deprecated lifecycle methods

* add missing line break
2019-09-20 19:41:26 +02:00
Michael Diego
9a18d5b3d3
Remove scam links 2019-07-16 20:32:18 +02:00
Michael Diego
63d18789c0
Update DOC.md 2019-07-10 10:33:38 +02:00
Michael Diego
955fe889c4
Update DOC.md 2019-07-10 10:32:34 +02:00
Eric Neo
94fcc3e541 Pass zoom value to zoom animation callbacks (#742) 2019-05-14 12:54:23 -03:00
Michael
b3c27dfb0e Bump version to 1.1.4 1.1.4 2019-04-03 10:23:57 -03:00
Michael Diego
de2cca6c16
Revert "Add shouldUnregisterMapOnUnmount prop to persist map object on unmount (#722)" (#739)
This reverts commit 40fe3ead1d82cb01447100c1fb9f8008e38f366a.
2019-04-03 10:22:03 -03:00
Michael Diego
c6767e24f5
Revert "Google Map loader respecting the app language change (#726)" (#738)
This reverts commit 55fd1b06a375e2126e8dea95d5f32943f4009553.
2019-04-03 10:19:42 -03:00
Michael
d5ea046257 Bump version to 1.1.3 1.1.3 2019-04-01 12:48:23 -03:00
Michael
b49a3a6186 Revert "Bump version to 1.1.3"
This reverts commit 59c0265b52defaa7fa30bb96f5690caa6882c5a0.
2019-04-01 12:48:13 -03:00
Michael Salaverry
3d78dd9cb4 Fix: Update heatmap layer when heatmap positions prop changes (#728)
* improvement: switched from defining API key in multiple places to one place

* now generating random readings

* fix: a change in heatmap positions now updates the map accordingly

* docs: added comment to explain that the developer should use their own key
2019-04-01 12:47:19 -03:00
Michael
59c0265b52 Bump version to 1.1.3 2019-04-01 12:46:10 -03:00
Tom Wagner
55fd1b06a3 Google Map loader respecting the app language change (#726) 2019-03-20 15:42:09 -03:00
Kevin Ramsunder
40fe3ead1d Add shouldUnregisterMapOnUnmount prop to persist map object on unmount (#722) 2019-03-18 14:29:52 -03:00
Michael Salaverry
c8a7f56261 Documentation: added PropTypes for heatmap prop (#716)
* Documentation: added PropTypes for heatmap prop

This PR improves the documentation of the heatmap prop by adding types.
I don't mind adding PropTypes validation to this prop as well if you are interested in that.

* Update API.md

I added some spacing between the interface and the example snippet.
I also added a link to the example I wrote for the other repository. I think we should delay this PR until that example is live. That way, the new Demo link will go to live functioning code rather than no where.
2019-03-05 02:41:46 -03:00
Artem
7b02e7ef2e Small fix API.md (#721)
It is small fix in the example for Positioning a marker
2019-02-18 15:31:06 -03:00
Michael Diego
953da99572
Update README.md 2018-12-18 13:33:43 -03:00
Michael Diego
3d7c9823e4
Update README.md (#698)
* Update README.md

* Update README.md

* Update README.md

* Add javascript tag

* Update README.md
2018-12-18 13:32:04 -03:00
Michael Diego
4d863d9ddc
Bump version to 1.1.2 (#697)
Bump version to 1.1.2
1.1.2
2018-12-18 13:09:01 -03:00
Artem Artemyev
45ecda13e6 Added React 16 createPortal with backwards compatibility (#696)
* added react 16 createPortal support with backwards compatibility

* fixed lint errors
2018-12-18 13:02:16 -03:00
Michael Diego
599195510e
Bump to 1.1.1 (#680)
Bump to 1.1.1
1.1.1
2018-11-21 18:13:45 +01:00
Michael Diego
d8d9dc3b63
Revert "Added feature: update heat map on data change + fix linting" (#679)
* Revert "Bump version to 1.1.0 (#671)"

This reverts commit 1603e3afea4cd0fdb88e7b5479f1f3321908afb4.

* Revert "Added feature: update heat map on data change + fix linting (#593)"

This reverts commit 1ce8726fda4cd56694680051125dd107c2817528.
2018-11-21 18:11:50 +01:00
Michael Diego
1603e3afea
Bump version to 1.1.0 (#671)
This includes: 

- #655 Add math abs to avoid negative values when calculating zoom 
- #656 Pass map instance to onDrag handler 
- #593 Added feature: update heat map on data change + fix linting
1.1.0
2018-11-08 15:36:19 +03:00
Donovan De Smedt
1ce8726fda Added feature: update heat map on data change + fix linting (#593)
* Added feature: update heat map on data change

When prop updateHeatmap is set to true --> map will rerender.
- New render of <GoogleMapReact> and data is changed, prop updateHeatmap should be true
- New render of <GoogleMapReact> and data is not changed, prop updateHeatmap should be false

* Supports multiple google map libraries + update heatmap when prop updateHeatmap equals true

* Updated this.props -> nextProps (rookie mistake...)

* Updated API documentation:
- added info about the use of other libraries in the Google Map API
- added info about the updateHeatmap prop
2018-11-08 15:20:30 +03:00
Dmitry Bogomya
4a92a42902 Pass map instance to onDrag handler (#656) 2018-11-08 15:20:12 +03:00
Max Chernin
f73e774a45 add math abs to avoid negative values when calculating zoom (#655)
* add math abs to avoid negative values when calculating zoom

* add math.abs with proper styling to pass tests

* add math.abs to dx\dy on fitbounds
2018-11-08 15:19:33 +03:00
Michael Diego
16236f9d7e
Bump version to 1.0.9 (#651) 1.0.9 2018-09-29 12:46:33 +03:00
Jurgis Kacens
53e0979acb Custom div style options (#634)
* Custom div style options

* fix es-lint issue

* props naming fix

* docs update

* words
2018-09-29 12:37:08 +03:00
Michael Diego
6bca0a4d37
Bump version to 1.0.8 (#646) 1.0.8 2018-09-21 14:07:28 +03:00
Michael Diego
317b5c0999
Revert 643 fix/map context (#645)
* Revert "Bump version to 1.0.7 (#644)"

This reverts commit 800092ae6f57648cf0ed74625a90752283ac1af4.

* Revert "Add passive scroll (#631)"

This reverts commit 40c8f67e78c1b851f5d35ef832ff5ef728db86af.

* Revert "Use React 16 portal to render map overlay (#643)"

This reverts commit b121bb673e9dae5ae558c8c98218f7fc02029da2.
2018-09-21 12:51:04 +03:00
Michael Diego
800092ae6f
Bump version to 1.0.7 (#644) 1.0.7 2018-09-20 20:36:33 +03:00
Martin Jujou
40c8f67e78 Add passive scroll (#631)
* Add passive scroll

* Reworked code
2018-09-20 20:28:23 +03:00
Curtis Layne
b121bb673e Use React 16 portal to render map overlay (#643)
* Use React 16 portal to render map overlay

This allows the new context API to propagate context properly.

* Rename div to overlay
2018-09-20 20:20:22 +03:00
Michael Diego
28506dd427
Fix old examples links and add one to new examples (#633) 2018-08-23 17:19:30 +02:00
Michael Diego
f43ad9b2b4
Bump version to 1.0.6 (#621) 1.0.6 2018-08-03 10:14:32 +02:00
Jonathan Weiß
6d142cb10c Add prop onTilesLoaded (#615)
* Add prop `onTilesLoaded`

* (Adjust package name

* Increase version

* Make linter happy

* Remove scope from package name and reset version number

* Add description for new prop

* Remove "directories" entry

* Correct changelog

* Remove section header

* v2.0.0

* Revert version number

* Only listen to event if prop is used
2018-08-03 09:49:35 +02:00
Stephen Farrar
55f134c60c Fix typo, and call fromContainerPixelToLatLng() as you would expect. (#620) 2018-08-03 09:48:12 +02:00
Ryan Vermooten
e8bbbff34e Update API.md (#611)
Since June 11 2018 all Google Maps Platform API requests must include an API key.
https://developers.google.com/maps/documentation/javascript/usage-and-billing
2018-07-09 17:38:42 +03:00
Michael Diego
2cfb0a64f5
Upgrade version to 1.0.5 (#607) 1.0.5 2018-06-26 23:33:53 +03:00
Stephen Farrar
6c60a536d0 Remove marker jiggle. (#603)
Position the markers relative to the map panes.
Don't position the element that contains the markers.
Renamed all the geo service projection methods, for clarity.
2018-06-26 23:27:32 +03:00
Nguyen Le Vu Long
b1d88c33f9 Update API.md (#606)
Because the parent node of marker has size 0x0, top 50% and right 50% would affect nothing. You only need to translate(-50%, -50%) to move it to the right position.
2018-06-22 19:07:36 +03:00
Michael Diego
a73629b389
Fix build (#605)
* Fix build by updating yarn

* Fix lint

* Fix build by adding react-dom to devDependencies

* Fix lint again
2018-06-22 16:44:26 +03:00
Michael Diego
bc63943a11
Update API.md (#600) 2018-06-11 04:45:28 -03:00
Michael Diego
03cd34dc79
Update 'positioning a marker' docs (#599)
Better way to position a marker
2018-06-11 04:43:48 -03:00
Michael Diego
78256b1d5e
Bump version to 1.0.4 (#598) 1.0.4 2018-06-11 04:18:50 -03:00
David Furlong
26a729b25d Update API.md (#596) 2018-06-11 04:16:02 -03:00