mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
1.2 KiB
1.2 KiB
###Mon Oct 5 2015
Add OnChange({center, zoom, bounds: {nw, se}, size, ...oherMapProps})
Add deprecation warning to onBoundsChange
Add utils functions, with fitBounds and other functions
import { fitBounds } from 'google-map-react/utils';
const bounds = {
nw: {
lat: 50.01038826014866,
lng: -118.6525866875,
},
se: {
lat: 32.698335045970396,
lng: -92.0217273125,
},
};
const size = {
width: 640, // Map width in pixels
height: 380, // Map height in pixels
};
const {center, zoom} = fitBounds({nw, se}, size);
###Sun Oct 4 2015 Add minZoom calculation, to prevent situations when one map point can have multiple screen coordinates.
###Sun Oct 4 2015 Add ability to access to internal google api
<GoogleMap onGoogleApiLoaded={({map, maps}) => console.log(map, maps)} />
(to prevent warn message add yesIWantToUseGoogleMapApiInternals property to GoogleMap)
###Sun Oct 4 2015
Add: defaultZoom defaultCenter properties, it closes #9 #10
###Sat Oct 3 2015
Support center prop as {lat, lng} object
###Thu Oct 1 2015
Add onClick, onZoomAnimationStart, onZoomAnimationEnd events.