UNPKG

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