Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pieterv/react-googlemaps

A declarative React interface to Google Maps
https://github.com/pieterv/react-googlemaps

Last synced: 28 days ago
JSON representation

A declarative React interface to Google Maps

Awesome Lists containing this project

README

        

React Google Maps [![Build Status](https://travis-ci.org/pieterv/react-googlemaps.svg?branch=master)](https://travis-ci.org/pieterv/react-googlemaps)
============

A declarative React interface to Google Maps.

Check it out:

* [Example usage](examples)
* [API docs](docs/api.md)
* [What's new](CHANGELOG.md)

Important Notes
---------------

This is an alpha release. The API and organizational structure are subject to
change. Comments and contributions are much appreciated.

Installation
------------

```sh
npm install react-googlemaps --save
```

This library is written with CommonJS modules. If you are using
browserify, webpack, or similar, you can consume it like anything else
installed from npm.

Usage
-----

```js
var React = require('react');
var ReactGoogleMaps = require('react-googlemaps');
var GoogleMapsAPI = window.google.maps;

var Map = ReactGoogleMaps.Map;
var Marker = ReactGoogleMaps.Marker;
var OverlayView = ReactGoogleMaps.OverlayView;

function handleClick(e) {
console.log('Clicked at position', e.latLng);
}

React.render(


Some content



,
mountNode
);
```

Checkout the [API docs](docs/api.md) or the [`examples`](examples) directory for more detailed usage.

License
-------

Licensed under MIT. [Full license here ยป](LICENSE)