1 | Add [google-map-clustering-example](https://github.com/istarkov/google-map-clustering-example)
|
2 |
|
3 | ###0.9v
|
4 |
|
5 | Add: `bootstrapURLKeys` (object) instead of `apiKey` prop
|
6 |
|
7 | (`apiKey` prop is now deprecated)
|
8 |
|
9 | Example:
|
10 |
|
11 | ```javascript
|
12 | <GoogleMap
|
13 | bootstrapURLKeys={{
|
14 | key: API_KEY,
|
15 | language: 'ru',
|
16 | ...otherUrlParams,
|
17 | }}
|
18 | >
|
19 | ```
|
20 |
|
21 | ###0.8v
|
22 |
|
23 | Draggable markers support, examples comig soon.
|
24 |
|
25 |
|
26 | ###Mon Oct 5 2015
|
27 |
|
28 | Add `OnChange({center, zoom, bounds: {nw, se}, size, ...oherMapProps})`
|
29 |
|
30 | Add deprecation warning to `onBoundsChange`
|
31 |
|
32 | Add `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
|
58 | Add minZoom calculation, to prevent situations when one map point can have multiple screen coordinates.
|
59 |
|
60 | ###Sun Oct 4 2015
|
61 | Add 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 |
|
72 | Add: `defaultZoom` `defaultCenter` properties, it closes #9 #10
|
73 |
|
74 | ###Sat Oct 3 2015
|
75 |
|
76 | Support `center` prop as `{lat, lng}` object
|
77 |
|
78 | ###Thu Oct 1 2015
|
79 |
|
80 | Add `onClick`, `onZoomAnimationStart`, `onZoomAnimationEnd` events.
|