react-maps
v0.4.0
Published
A Google map API wrapper for React
Downloads
51
Readme
react-maps
Read the code for an understanding
Example
// ...
render: function() {
// Melbourne
var center = {
lat: -37.8602828,
lng: 145.079616
}
return (<GoogleMap center={center} zoom={8}>
<InfoWindow position={center} open>
<h1>Melbourne</h1>
</InfoWindow>
<Marker position={center} label="A pleasant place to live"/>
</GoogleMap>)
}
License
This library is free and open-source software released under the MIT license.