diff --git a/src/withGoogleMap.jsx b/src/withGoogleMap.jsx index a4bf3c41..55ea6da7 100644 --- a/src/withGoogleMap.jsx +++ b/src/withGoogleMap.jsx @@ -56,7 +56,7 @@ export function withGoogleMap(BaseComponent) { See https://github.com/tomchentw/react-google-maps/pull/168` ) // https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map - const map = new google.maps.Map(node) + const map = new google.maps.Map(node, this.props.googleMapSettings) this.setState({ map }) } diff --git a/src/withGoogleMap.md b/src/withGoogleMap.md index 84bcb1d4..c4bcd458 100644 --- a/src/withGoogleMap.md +++ b/src/withGoogleMap.md @@ -2,6 +2,7 @@ * containerElement: ReactElement * mapElement: ReactElement +* googleMapSettings: Settings object for Google Map ### Usage