Hide default fullscreen button on react-google-maps
I think library got an update: google-map-react 0.23
defaultOptions
changed to options
const mapOptions = {
fullscreenControl: false,
};
const Map = withGoogleMap(props=>(
<GoogleMap
defaultZoom={12}
defaultCenter={{ lat: this.state.lat, lng: this.state.lng }}
options={mapOptions}
/>
))
Hope it helps
Just to include it in default options
const defaultMapOptions = {
fullscreenControl: false,
};
const InputGoogleMap = withGoogleMap(props=>(
<GoogleMap
ref={(map) => console.log()}
defaultZoom={12}
defaultCenter={{ lat: this.state.lat, lng: this.state.lng }}
defaultOptions={defaultMapOptions}
/>
))
For more Google Maps options you can find it here: https://developers.google.com/maps/documentation/javascript/reference?csw=1#MapOptions