React GMaps
Wrapper component for gmaps
Usage
Install
yarn add @anarklab/react-gmaps # or npm install @anarklab/react-gmaps --saveAdd the reference to google api
<script src="//maps.google.com/maps/api/js?key=<your api key>"></script>Usage
import React from 'react'
import GMaps from 'react-gmaps'
export default () => (
<GMaps addr="Hell's Kitchen, New York, NY, USA" marker />
)The basic usage is passing addr props:
<GMaps addr="Hell's Kitchen, New York, NY, USA" />Also, you can add marker as boolean attribute or an string to custom image
<GMaps addr="Hell's Kitchen, New York, NY, USA" marker />
// or
<GMaps addr="Hell's Kitchen, New York, NY, USA" marker="path/to/your/custom/pin.png" />You can change the default options:
<GMaps addr="Hell's Kitchen, New York, NY, USA" options={...} />To see more detailed information, please see the Google Documentation
Demo
You can see this component working here
License
The MIT License (MIT). Please see License File for more information.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
