I am using a library, google-map-react: https://github.com/istarkov/google-map-react
I have followed the instructions in the readme and the map appears on screen, but it takes up the entire screen by default, and i can't get it to change. Here is my code. I have tried:
<GoogleMapReact
defaultCenter={this.props.center}
defaultZoom={this.props.zoom}
style={{height: '400px', width: '400px'}}
>
and
<GoogleMapReact
defaultCenter={this.props.center}
defaultZoom={this.props.zoom}
size={{height: '400px', width: '400px'}}
>
and
<GoogleMapReact
defaultCenter={this.props.center}
defaultZoom={this.props.zoom}
style={height: '400px', width: '400px'}
>
and I have also tried using percents instead of hard coding pixels. The documentation doesn't say anything about how to set the size, how can I do that? I even tried putting it inside a (from bootstrap) and it still takes up the entire area. How can I manually set the size?