27 Commits

Author SHA1 Message Date
Michael Diego
1ce0ef6f2f
Use @googlemaps/js-api-loader and fix libraries usage (#946)
Co-authored-by: Justin <jpoehnelt@google.com>
Co-authored-by: Aviya Developer <aviya.developer@gmail.com>
2020-09-22 18:59:12 +02:00
Michael Diego
25b1646a2d
Reverts PR #921 to fix #931 (#933)
* Revert "Fix heatmapLibrary"

This reverts commit 8e67c08c275ea611e1a8d193c6888a312b47cafb.

* Revert "Update API.md"

This reverts commit 2d55cedfdd67b5410261f677f17c2d0969485757.

* Revert "Added all google maps api libraries to api loader (#921)"

This reverts commit 1718a4a9415e1422752f3ae68c8b7119af6ca8db.
2020-09-01 05:17:53 +02:00
Michael Diego
2d55cedfdd
Update API.md 2020-08-31 04:37:55 +02:00
aviyadeveloper
1718a4a941
Added all google maps api libraries to api loader (#921)
* Added all google maps api libraries to api loader

Supports places, visualization, places, and geomerty libs.
keeps support for previous heatMapLibrary prop to avoid breaking older usage.

* add libraries to props of GoogleMap

* Update google_map.js

* add warning about heatMapLibrary

* heatmap depreaction, clean libraries, docs

* clean up google map prop
2020-08-31 02:27:50 +02:00
Michael Diego
b3bc11c215
Rewrite library using create-react-library (#900)
* Rewrite library using create-react-library
* Export utils properly
* Remove unnecessary code and fix eslintignore
* Update CHANGELOG
2020-07-25 03:03:03 -03:00
Eric Neo
260c6d1c76 Add prop 'onDragEnd' (#754) 2019-09-20 19:42:29 +02: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
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
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
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
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
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
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
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
David Furlong
26a729b25d Update API.md (#596) 2018-06-11 04:16:02 -03:00
Michael Diego
ef8b871d56 Fix GH pages 2018-05-13 16:21:25 -03:00
Michael Diego
b6e4d628ef
Improve documentation (#548)
* Move heatMap docs to API.md

* Upgrade example code style

* Specify that we need a container in the example

* Actually, remove propTypes, will confuse ppl

* Add more instructions

* Add main title

* Quick corrections

* Add PRs welcome status

* Move features down

* Actually, lets not use PFC, will avoid confusions

* Remove center from tips, its obvius

* Remove bower message, not needed I believe

* Clearer documentation
2018-03-21 18:50:20 -07:00
Michael Diego
faf67e5e0e
Accept 0 as zoom value. (#525)
* Accept zoom being 0

* If we set a minZoom, its clear that we want to override it

* Oops! Wrong operators
2018-03-09 11:08:46 -08:00
Emil Pålsson
1a60df0ec7 Fix for usage from China (#494)
* Fix for usage from China

* Fix formatting

* Case insensitive check for China region

* Add localization info to docs, incl info regarding China specific URL
2018-01-18 12:48:51 -08:00
comerc
5ffa73c42a Remove sensor parameter (#399)
https://stackoverflow.com/questions/8616764/what-is-the-sensor-parameter-in-google-places-api-good-for
2017-12-20 18:47:33 -03:00
huygn
d83352f16b docs - fix outdated method on SearchBox example (#343) 2017-12-20 18:45:36 -03:00
Tim
bb59c46ef4 Update API.md (#403)
fix searchbox example
2017-12-20 18:04:05 -03:00
Yoad Snapir
956c0ca5d2 Stop capturing all touch events and use built in google maps support (#334)
* Revert "Fix ipad dragging issue (#233)"
Using the built in support from google maps would make the component more
mobile friendly.

This reverts commit 7d1180c5427750e18411874f538ae6bfbbe33498.

* Improve documentation around touch device support

* Fix linting errors
2017-03-10 12:28:28 +03:00
cybice
e64f9819dd New documentation begin 2017-01-31 00:51:19 +03:00