import {Map, GoogleApiWrapper} from 'google-maps-react'
var React = require('react')
class GoogleMapContainer extends React.Component {
render() {
return(
<Map google={this.props.google}
style={{width: '100%', height: '100%', position: 'relative'}}
className={'map'}
zoom={14}>
<Marker
title={'The marker`s title will appear as a tooltip.'}
name={'SOMA'}
position={{lat: 37.778519, lng: -122.405640}} />
<Marker
name={'Dolores park'}
position={{lat: 37.759703, lng: -122.428093}} />
\\
</Map>
)
}
}
export default GoogleApiWrapper({
apiKey: 'AIzaSyDq-nhDEOWaOzLfFAr9Lx4dlvEBIpHMxCk'
})(GoogleMapContainer)
i have this code that gives me an error in the browser console
ReferenceError: Marker is not defined
but in the documentation of the package they never import Marker https://github.com/fullstackreact/google-maps-react
i can't discover what is happening