Created
August 8, 2017 21:19
-
-
Save nickbalestra/788482e71507370cdec8893f46549250 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import styles from './map.css'; | |
import GoogleMap from './google-map'; | |
import mapData from '../../test/geo.json'; | |
export function Map(props) { | |
let map = ( | |
<GoogleMap | |
markerData={mapData.features} | |
centerPoint={{ lat: 51.5285, lng: -0.0847 }} | |
zoomLevel={12} | |
/> | |
); | |
return ( | |
<div className={styles.map}> | |
{map} | |
</div> | |
); | |
} | |
export default Map; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment