Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed URL Google Maps React example #306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default GoogleApiWrapper({
})(MapContainer)
```

Alternatively, the `GoogleApiWrapper` Higher-Order component can be configured by passing a function that will be called with whe wrapped component's `props` and should returned the configuration object.
Alternatively, the `GoogleApiWrapper` Higher-Order component can be configured by passing a function that will be called with the wrapped component's `props` and should returned the configuration object.

```javascript
export default GoogleApiWrapper(
Expand Down Expand Up @@ -82,13 +82,13 @@ export default GoogleApiWrapper({
apiKey: (YOUR_GOOGLE_API_KEY_GOES_HERE)
})(MapContainer)
```
*Note: [Marker](#marker) and [InfoWindow](#infowindow--sample-event-handler-functions) components are disscussed below.*
*Note: [Marker](#marker) and [InfoWindow](#infowindow--sample-event-handler-functions) components are discussed below.*

![](http://d.pr/i/C7qr.png)

## Examples

Check out the example site at: [http://fullstackreact.github.io/google-maps-react](http://fullstackreact.github.io/basic)
Check out the example site at: [http://fullstackreact.github.io/google-maps-react](http://fullstackreact.github.io/google-maps-react)

## Additional Map Props
The Map component takes a number of optional props.
Expand All @@ -103,7 +103,7 @@ const style = {
height: '100%'
}
```
initalCenter: Takes an object containing latitude and longitude coordinates. Sets the maps center upon loading.
initialCenter: Takes an object containing latitude and longitude coordinates. Sets the maps center upon loading.

```javascript
<Map
Expand Down