You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3

4
4
5
-
> A declarative Google Map React component using React, lazy-loading dependencies, and a test-driven approach by the [fullstack react](https://fullstackreact.com) team.
5
+
> A declarative Google Map React component using React, lazy-loading dependencies, current-location finder and a test-driven approach by the [fullstack react](https://fullstackreact.com) team.
6
6
7
7
## Quickstart
8
8
@@ -28,6 +28,16 @@ Usage:
28
28
</Map>
29
29
```
30
30
31
+
## Map
32
+
33
+
The `<Map />` component _requires_ a `google` prop be included to work. Without the `google` prop, it will explode.
34
+
35
+
```javascript
36
+
<Map google={window.google} />
37
+
```
38
+
39
+
###
40
+
31
41
## Automatically Lazy-loading google api
32
42
33
43
The library includes a helper to wrap around the google maps API. The `GoogleApiWrapper` Higher-Order component accepts a configuration object which *must* include an `apiKey`. See [lib/GoogleApi.js](https://github.com/fullstackreact/google-maps-react/blob/master/src/lib/GoogleApi.js#L4) for all options it accepts.
0 commit comments