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