mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Additions
This commit is contained in:
parent
6303c17f9c
commit
b81a93b733
8
DOC.md
8
DOC.md
@ -16,8 +16,8 @@ And a `MyMarker.js` is a simple React component.
|
||||
Open `Log` tab at the top of `webpackbin` and see the `mapProps` log.
|
||||
(_see the `withProps` at `Map.js`_)
|
||||
|
||||
First value is the { `center` and `zoom` } which is set by you,
|
||||
and second value is the value provided by `GoogleMapReact` component at initialization,
|
||||
First value is the { `center` and `zoom` } which is set by you (_see withState at Map.js_),
|
||||
and second value is the value provided by `GoogleMapReact` component at initialization in `onChange` callback.
|
||||
|
||||
```javascript
|
||||
{
|
||||
@ -28,8 +28,8 @@ and second value is the value provided by `GoogleMapReact` component at initiali
|
||||
}
|
||||
```
|
||||
|
||||
Component calls the `onChange` callback on initialization,
|
||||
it's because `map bounds` can't be calculated without knowledge of map size.
|
||||
It's needed because `map bounds` can't be calculated without knowledge of map size,
|
||||
and bounds are really usefull in a lot of situations. (_see Note below_)
|
||||
|
||||
Please move and zoom the map to see log changes.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user