357 Commits

Author SHA1 Message Date
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
Martin Jujou
fc062a0018 Move dep for react-dom (#592) 2018-05-31 16:32:33 -03:00
Jeffrey Auriemma
99c3c847bb Add guard around mapDom event listener (#594)
Fixes an issue where, even if the end user has a proper google maps API
mock, the GoogleMaps component will throw an error when in a test
env.  ReactDOM.findDOMNode(this.googleMapDom_) returns `null`.

This commit wraps the subsequent addEventListener call in an `if` block,
ensuring that an empty DOM doesn't add complications to test suites
2018-05-31 16:30:27 -03:00
Alexander Sundli-Härdig
d6576f226f Avoid null error (#570)
Avoid the error "Cannot read property 'removeEventListener' of null"
2018-05-25 07:05:45 -03:00
Michael Diego
cdd6ec658f
Bump to v1.0.3 (#582) 1.0.3 2018-05-16 23:59:26 -03:00
Matt Togstad
92b502bd2d Option to position and size components with two corners. (#580)
* Option to position components with two corners.

This lets you lock a component to a specific bounding rectangle, which allows for precise tiling during zoom.

* Add a comment explaining two point positioning.
2018-05-16 23:56:31 -03:00
Michael Diego
ef8b871d56 Fix GH pages 2018-05-13 16:21:25 -03:00
Michael Diego
f6bb0039c0
Update Readme jsbin examples (#578) 1.0.2 2018-05-13 16:03:03 -03:00
Michael Diego
a1aa3141f7 Fix README.md 2018-05-13 15:47:58 -03:00
Michael Diego
d4d5917cc0 Bump to 1.0.2 2018-05-13 14:54:03 -03:00
Michael Diego
6680cc5fcf Move react-dom from peer to dependencies 2018-05-13 14:52:58 -03:00
Michael Diego
b7d61df5f6
Move react-dom to dependencies (#577)
* Move react-dom to dependencies

* Actually, move react-dom to peer-dependency
2018-05-13 14:28:09 -03:00
Michael Diego
586d9c4d1a
Update Readme.md
Fix example
1.0.1
2018-05-11 10:54:26 -03:00
Michael Diego
7de6933b57 Use new apiKey 2018-05-10 16:24:24 -03:00
Michael Diego
cc4eadb883 Bump version to 1.0.1 2018-05-10 15:53:55 -03:00
Donovan De Smedt
4faeeef56d added feature to add weights to the heatmap (#572) 2018-05-08 19:09:13 -03:00
Michael Diego
0d3acb564e Release 1.0.0 1.0.0 2018-04-27 16:55:34 -03:00
Stephen Farrar
7877008e17 Fix zoom animation for v3.32 (#559)
* Use the experimental version, to get the new zoom animation.

* Don't use bounds for rendering in 3.32

* Revert the project() and unproject() methods.

Instead, add a new method fromLatLngToContainerPixel() to geo service.

* No need of setting .exp, that is by default

* Comments explaining the significance of API v3.32

* Add _VERSION to const
2018-04-27 16:48:01 -03:00
Michael Diego
aec0c08aae
Fix code styling in develop (#564) 2018-04-18 15:11:47 -03:00
Michael Diego
898474d3f9
Oops! Fix typo 2018-04-18 15:01:47 -03:00
Michael Diego
04d41c8685
Move links to org instead of Ivan's repo, they were broken (#563) 2018-04-18 15:00:26 -03:00
kal
147997c5f7 added if statement in onRemove() function (#555)
Added an if statement in onRemove() function that checks if "this.div" is defined before calling ReactDOM.unmountComponentAtNode(this.div). This is done to avoid throwing an "unmountComponentAtNode(...): Target container is not a DOM element" error. I ran into this error while using google-map-react with React Router and switching between tabs rapidly to stress test my application.
2018-04-17 14:20:09 -03:00
Michael Diego
9d0b3939ba
Use our own omit.js (#561) 2018-04-17 13:31:01 -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
d457d1cd29
Fix recompose (#547)
* Create our own createHelper, its not in recompose anymore

* Use our withStateSelector

* Proper apiKey usage

* Replace apiKey with bootstrapUrlKeys

* No need of true value in html

* Use lodash.omit instead in dev

* Remove unused file

* Remove unnecessary extra folder utils

* Upgrade recompose again

* Oops! Move lodash.omit to devDependencies

* Fix webpack files styles

* Make examples bigger in width
2018-03-21 16:54:15 -07:00
Michael Diego
486bccfc61
Use shallowEqual and isEmpty as much as possible (#540)
* Use shallowCompare to compare objects

* Use isEmpty as much as possible

* Use our own shallowEqual

* Remove fbjs

* Just disable necessary line

* Add eslint-disable where needed
2018-03-13 16:59:11 -07:00
Michael Diego
8cb6939e6c
Remove lodash and use our own utils (#535)
* Use pure reduce and map functions

* Use only isEmpty from lodash

* Create our own isEmpty, don't use lodash

* Normalize utils names

* Group utils together

* Proper checking, better this way

* Set default value to options
2018-03-12 15:56:22 -07:00
Michael Diego
22302fc82c
Use private createHelper from recompose as its not exposed (#537) 2018-03-12 15:18:12 -07:00
Michael Diego
1ad4402462
Refactor code style (#533)
* Run eslint

* Avoid DRY in importing

* Update recompose

* Unnecessary backticks

* Update comments

* Move api-path into a variable

* Rename queryString to params

* Proper eslint-disable
2018-03-11 12:16:58 -07:00
Michael Diego
b02665d646
Update package.json (#531)
Bumps version to 0.34
0.34
2018-03-10 15:01:03 -08:00
Alex Leon
e4fa5ff822 call zoomControlClickTime on all clicks (#211)
* call zoomControlClickTime on all clicks

* Update google_map.js
2018-03-10 13:57:34 -08:00
alireza valizade
32d95ab4b7 upgrade .babelrc (#521)
* upgrade .babelrc

* yarn.lock

* Update .babelrc

Fix format.
2018-03-10 13:57:23 -08:00
Michael Diego
0413648b22
Set latest release version as default if user does not specify a version. (#530)
* Move URL logic to a better place

* DRY

* Set release version as default version

* Actually, lets be careful and set v to 3.31
2018-03-10 13:57:05 -08:00
Michael Diego
35507907b3
Update package.json (#529) 0.33 2018-03-09 11:09:39 -08: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
Michael Diego
1211f98bf8
Bump version to 0.32.0 (#519)
Bumping version to 0.32.0
2018-02-23 11:21:40 -08:00
Fumiya Karasawa
4a071767ff fix error about fromLatLngToDivPixel (#517)
* fix error about fromLatLngToDivPixel

fix "Cannot read property 'fromLatLngToDivPixel' of undefined" #257

* skip only the code that relates to div or overlay
2018-02-23 11:15:02 -08:00
falconmick
0e80512d40 Added loose to es2015 for IE10, IE11 support (#504)
* added intellij ide gitignore

* IE9 and IE10 require loose to work

your demo app doesn't work on IE9/10 so you will need to make a more simple one to test this fix out. the issue is to do with this.props not being avaiable in constructors for IE9/10 see: https://github.com/babel/babel/issues/3975 it was supposidly fixed 1 year ago but I can't see it working, maybe we need to swap to @babel/core to get this fix? I tried it but the change is made larger due to the curent demo apps build system.

Full fix would involve upgading to @babel/core + @babel/preset-env and migrating away from kotatsu in favour of a plain ole react app via webpack (create-react-app maybe?) and then place it into another folder and have that folder habing it's own package.json so we can consume google-map-react as if it were a real library during testing. Sure we would loose hmr, but at this stage hmr isn't all that useful anyway.

I'de love the proper fix, but for now I have clients with IE10 browser requirements.
2018-02-13 23:32:11 -08:00
Michael Diego
1bf85e3129 Bump version to 0.31.0 0.31.0 2018-02-12 14:26:17 -08:00
Michael Diego
add233ca77
Update README.md (#509)
* Update README.md

Switch the position of heatmap info and remove some unnecessary attributes

* Update README.md
0.30.0
2018-02-12 14:19:33 -08:00
Michael Diego
38b6fbb1a9
Bump version to 0.30.0 2018-02-12 14:10:12 -08:00
ZAKdev
e50f1d825b Added heatmap functionality (#441)
* Added functionality of heatmap

* Added options for heatmap

* default heatmap prop change to object

* resolve linting issues

* resolve linting

* Added demo for heatmap

* Fixed eslint

* Added heatmapLibrary prop for enable and disable visualization library for components

* Fixed linting

* Added heatmapLibrary={true} in all map components

* Fixed proptypes error

* Added heatmap in README with example code

* removed api key from heatmap component

* Removed unnecessary props from heatmap component
2018-02-12 14:09:38 -08:00
Michael Diego
8466cc8d85
Upgrade version to 0.29.0 (#499)
Fixes current release where region is required and it should be not.
2018-01-22 17:43:12 -08:00