335 Commits

Author SHA1 Message Date
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
Emil Pålsson
b84c663f9a Fix China fix making region required (#496) 2018-01-22 17:41:35 -08:00
Michael Diego
3d85c68bdb
Update version to 0.28.0 (#495)
- Adds support for China
0.28.0
2018-01-18 12:56:56 -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
Michael Diego
6263b54959
Upgrade version to 0.27.0 (#489) 0.27.0 2018-01-04 15:50:45 +01:00
David Furlong
442e666f35 Move to use of prop-types package for PropTypes (#398)
* Create GMap.js

* Create GMapLayers.js

* Create GMapResizable.js

* Create SimpleMarker.js
2018-01-04 15:44:48 +01:00
Ondrej Mladek
e47d955a90 Add fullscreen check for Internet explorer 11 (#485)
* Add fullscreen check for Internet explorer 11

Fixing marker position in Internet Explorer 11 in fullscreen mode.
Fixing: https://github.com/istarkov/google-map-react/issues/484

* #484: move fullscreen check to function

* #484 eslint fix
2018-01-04 15:12:01 +01:00
Joseph Frazier
9d5a1cc37f Travis: Ensure that yarn.lock is up to date (#487)
See https://github.com/istarkov/google-map-react/pull/483#issuecomment-353480981
2017-12-28 07:43:15 -03:00
Acellam Guy
7814901c64 notify call back of load failure (#479)
When the google  fails to load due to no internet, the  call back should be notified so that appropriate UI can be shown
2017-12-28 07:42:30 -03:00
Joseph Frazier
0db8020122 Make resetBoundsOnResize preserve center when full-screened (#482)
* lockCenter prop added

* Resolve conflicts

* Fix lint with `yarn lint --fix`

* Add documentation for `lockCenter` prop

* Remove `lockCenter`, add its behavior to `resetBoundsOnResize`

See https://github.com/istarkov/google-map-react/pull/482/files#r158330791
2017-12-22 01:54:12 -03:00
Joseph Frazier
2e7bd79d16 Update yarn.lock (#483)
e344c3c8f4
switched from `point-geometry` to `@mapbox/point-geometry`, but it
didn't update yarn.lock accordingly. This does.
2017-12-21 19:28:52 -03:00
Michael Diego
f05a0ff1fe
Upgrade to 0.26.0 (#481) 2017-12-20 19:09:43 -03: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
jbcochery
9a418f6aa3 Fix markers position on fullscreen mode (#452) 2017-12-20 18:46:49 -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
valorize
e344c3c8f4 Move points-geometry dependency to organization (#462)
* Move dependency to organization

* Update geo.js

* Update transform.js
2017-12-20 17:55:54 -03:00
Michael Diego
235cd3d315
Update README.md 2017-12-19 17:52:39 -03:00
Ivan Starkov
9e0ae82e66
Update README.md 2017-11-23 22:34:23 +01:00
Ivan Starkov
c328115034
Update README.md 2017-11-23 22:33:50 +01:00
Ivan Starkov
74875a542e 0.25.0 2017-10-23 22:24:41 +03:00
Exomnius
f4c0a0ce20 Added react 16 as peer dependency + bumped related react versions (#454)
* react-16 added react 16 as peer dependency and bumped related react versions

* react-16 removed unwanted style changes

* react-16 removed unwanted style changes

* react-16 removed unwanted style changes
2017-10-15 22:18:29 +03:00
Lloyd Watkin
2ec7048ab2 Add source to clustering example (#311) 2017-06-23 15:45:47 +03:00