1.0.5 • Published 9 days ago

react-google-map-wrapper v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
9 days ago

React Google Map Wrapper · GitHub license npm version

react-google-map-wrapper is a React component library for rendering Google Maps.

You can see an example here.

import { Suspense } from 'react';
import { GoogleMap, GoogleMapApiLoader, Marker } from 'react-google-map-wrapper';

function Map() {
  return (
    <GoogleMap className='h-[400px]' zoom={17} center={{ lat: 37.5709413, lng: 126.977787 }}>
      <Marker lat={37.5709413} lng={126.977787} />
    </GoogleMap>
  );
}

function App() {
  return (
    <Suspense fallback={<Fallback />}>
      {/* Load the google map api */}
      <GoogleMapApiLoader apiKey='YOUR_API_KEY' suspense>
        <Map />
      </GoogleMapApiLoader>
    </Suspense>
  );
}

Installation

npm install react-google-map-wrapper # or yarn add react-google-map-wrapper or pnpm add react-google-map-wrapper

Documentation

You can find the documentation on the website.

Check out the Getting Started page for a quick overview.

License

react-google-map-wrapper is MIT licensed.

1.0.5

9 days ago

1.0.4

21 days ago

1.0.3

4 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.0.1-beta.9

5 months ago

0.0.1-beta.8

5 months ago

0.0.1-beta.7

5 months ago

0.0.1-beta.6

5 months ago

0.0.1-beta.5

5 months ago

0.0.1-beta.4

5 months ago

0.0.1-beta-2

5 months ago

0.0.1-beta-1

5 months ago

0.0.1-beta-3

5 months ago

0.0.1

5 months ago