I've implemented the default react-google-map component and it is displaying the map correctly. However, is there a way to initialize it into street view with a given coordinate?
Original code I would like to modify below:
const Map = compose(
withProps({
containerElement: <div style={{ height: `100%` }} />,
mapElement: <div style={{ height: `100%` }} />
}),
withGoogleMap
)(props => (
<GoogleMap
defaultZoom={18}
defaultCenter={{ lat: props.coord.lat, lng: props.coord.lng }}
>
{true && (
<Marker position={{ lat: props.coord.lat, lng: props.coord.lng }} />
)}
</GoogleMap>
));