Pass map instance to onDrag handler - #656
Conversation
|
@bogomya Could you explain how this improves and provide an example? Just for documentation, I totally understand what you are doing |
|
The idea was in getting map bounds on drag event to load new markers. I could use onChange, but onChange is called also when zoom event is occurred, and also on initial load. |
|
@bogomya Thank you so much! This would be helpful. Could you provide a live example of this working? I need to check its working before releasing it. |
itsmichaeldiego
left a comment
There was a problem hiding this comment.
Looking forward to see the example
|
@bogomya Merged and deployed in version |
* 'master' of github.com:google-map-react/google-map-react: Bump to 1.1.1 (GoogleMapReact#680) Revert "Added feature: update heat map on data change + fix linting" (GoogleMapReact#679) Bump version to 1.1.0 (GoogleMapReact#671) Added feature: update heat map on data change + fix linting (GoogleMapReact#593) Pass map instance to onDrag handler (GoogleMapReact#656) add math abs to avoid negative values when calculating zoom (GoogleMapReact#655) Bump version to 1.0.9 (GoogleMapReact#651) Custom div style options (GoogleMapReact#634) Bump version to 1.0.8 (GoogleMapReact#646) Revert 643 fix/map context (GoogleMapReact#645) Bump version to 1.0.7 (GoogleMapReact#644) Add passive scroll (GoogleMapReact#631) Use React 16 portal to render map overlay (GoogleMapReact#643) Fix old examples links and add one to new examples (GoogleMapReact#633) Bump version to 1.0.6 (GoogleMapReact#621) Add prop `onTilesLoaded` (GoogleMapReact#615) Fix typo, and call fromContainerPixelToLatLng() as you would expect. (GoogleMapReact#620) Update API.md (GoogleMapReact#611) Upgrade version to 1.0.5 (GoogleMapReact#607) Remove marker jiggle. (GoogleMapReact#603)
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Goal:
Add possibility to work with google map api in the onDrag handler.