1import {Map, InfoWindow, Marker, GoogleApiWrapper} from 'google-maps-react';
2
3export class MapContainer extends Component {
4 render() {
5 return (
6 <Map google={this.props.google} zoom={14}>
7
8 <Marker onClick={this.onMarkerClick}
9 name={'Current location'} />
10
11 <InfoWindow onClose={this.onInfoWindowClose}>
12 <div>
13 <h2>{this.state.selectedPlace.name}</h2>
14 </div>
15 </InfoWindow>
16 </Map>
17 );
18 }
19}
20
21export default GoogleApiWrapper({
22 apiKey: (YOUR_GOOGLE_API_KEY_GOES_HERE)
23})(MapContainer)
24