UNPKG

1.6 kBMarkdownView Raw
1Add [google-map-clustering-example](https://github.com/istarkov/google-map-clustering-example)
2
3###0.9v
4
5Add: `bootstrapURLKeys` (object) instead of `apiKey` prop
6
7(`apiKey` prop is now deprecated)
8
9Example:
10
11```javascript
12<GoogleMap
13 bootstrapURLKeys={{
14 key: API_KEY,
15 language: 'ru',
16 ...otherUrlParams,
17 }}
18>
19```
20
21###0.8v
22
23Draggable markers support, examples comig soon.
24
25
26###Mon Oct 5 2015
27
28Add `OnChange({center, zoom, bounds: {nw, se}, size, ...oherMapProps})`
29
30Add deprecation warning to `onBoundsChange`
31
32Add `utils` functions, with `fitBounds` and other functions
33
34```javascript
35 import { fitBounds } from 'google-map-react/utils';
36
37 const bounds = {
38 nw: {
39 lat: 50.01038826014866,
40 lng: -118.6525866875,
41 },
42 se: {
43 lat: 32.698335045970396,
44 lng: -92.0217273125,
45 },
46 };
47
48 const size = {
49 width: 640, // Map width in pixels
50 height: 380, // Map height in pixels
51 };
52
53 const {center, zoom} = fitBounds({nw, se}, size);
54```
55
56
57###Sun Oct 4 2015
58Add minZoom calculation, to prevent situations when one map point can have multiple screen coordinates.
59
60###Sun Oct 4 2015
61Add ability to access to internal google api
62
63```javascript
64<GoogleMap onGoogleApiLoaded={({map, maps}) => console.log(map, maps)} />
65```
66
67(*to prevent warn message add _yesIWantToUseGoogleMapApiInternals_ property to GoogleMap*)
68
69
70###Sun Oct 4 2015
71
72Add: `defaultZoom` `defaultCenter` properties, it closes #9 #10
73
74###Sat Oct 3 2015
75
76Support `center` prop as `{lat, lng}` object
77
78###Thu Oct 1 2015
79
80Add `onClick`, `onZoomAnimationStart`, `onZoomAnimationEnd` events.