UNPKG

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