1.0.5 • Published 7 years ago

react-withmap v1.0.5

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

Description

Need to wrap any component inside react with google maps api, I've recopiled the scripts from https://github.com/fullstackreact/google-maps-react. This scripts are very well explained here https://www.fullstackreact.com/articles/how-to-write-a-google-maps-react-component/

This module just wrap a react component and inject the map object from google api as a prop into it.

All the merits are for fullstackreact who are the creators of the scripts.

Install

yarn add withMap

Usage

import { withMap } from 'react-withmap';

export default withMap({ apiKey: 'apikeyfromgooglemaps' })(AnyReactComponent);
1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago