File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ And a `MyMarker.js` is a simple React component.
16
16
Open ` Log ` tab at the top of ` webpackbin ` and see the ` mapProps ` log.
17
17
(_ see the ` withProps ` at ` Map.js ` _ )
18
18
19
- First value is the { ` center ` and ` zoom ` } which is set by you,
20
- and second value is the value provided by ` GoogleMapReact ` component at initialization,
19
+ First value is the { ` center ` and ` zoom ` } which is set by you ( _ see withState at Map.js _ ) ,
20
+ and second value is the value provided by ` GoogleMapReact ` component at initialization in ` onChange ` callback.
21
21
22
22
``` javascript
23
23
{
@@ -28,8 +28,8 @@ and second value is the value provided by `GoogleMapReact` component at initiali
28
28
}
29
29
```
30
30
31
- Component calls the ` onChange ` callback on initialization ,
32
- it's because ` map bounds` can't be calculated without knowledge of map size.
31
+ It's needed because ` map bounds ` can't be calculated without knowledge of map size ,
32
+ and bounds are really usefull in a lot of situations. ( _ see Note below _ )
33
33
34
34
Please move and zoom the map to see log changes.
35
35
You can’t perform that action at this time.
0 commit comments