From b81a93b7335a9d707eb9a11201753a893861561b Mon Sep 17 00:00:00 2001 From: cybice Date: Tue, 31 Jan 2017 02:10:42 +0300 Subject: [PATCH] Additions --- DOC.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DOC.md b/DOC.md index 3cc942c..3eab5ca 100644 --- a/DOC.md +++ b/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.