react-google-maps-jimmy
Version:
React.js Google Maps integration component
31 lines (25 loc) • 531 B
Markdown
### Props
* containerElement: ReactElement
* mapElement: ReactElement
### Usage
```jsx static
import {
withGoogleMap,
GoogleMap,
Marker,
} from "react-google-maps-jimmy";
const MapWithAMarker = withGoogleMap(props =>
<GoogleMap
defaultZoom={8}
defaultCenter={{ lat: -34.397, lng: 150.644 }}
>
<Marker
position={{ lat: -34.397, lng: 150.644 }}
/>
</GoogleMap>
);
<MapWithAMarker
containerElement={<div style={{ height: `400px` }} />}
mapElement={<div style={{ height: `100%` }} />}
/>
```