We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6dc2ba commit 4414ad5Copy full SHA for 4414ad5
README.md
@@ -4,6 +4,30 @@
4
5
You can see an example [here](https://pyjun01.github.io/react-google-map-wrapper/docs/examples/basic/).
6
7
+```tsx
8
+import { Suspense } from 'react';
9
+import { GoogleMap, GoogleMapApiLoader, Marker } from 'react-google-map-wrapper';
10
+
11
+function Map() {
12
+ return (
13
+ <GoogleMap className='h-[400px]' zoom={17} center={{ lat: 37.5709413, lng: 126.977787 }}>
14
+ <Marker lat={37.5709413} lng={126.977787} />
15
+ </GoogleMap>
16
+ );
17
+}
18
19
+function App() {
20
21
+ <Suspense fallback={<Fallback />}>
22
+ {/* Load the google map api */}
23
+ <GoogleMapApiLoader apiKey='YOUR_API_KEY' suspense>
24
+ <Map />
25
+ </GoogleMapApiLoader>
26
+ </Suspense>
27
28
29
+```
30
31
## Installation
32
33
```bash
0 commit comments