We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e1a5ff commit 971f628Copy full SHA for 971f628
src/index.js
@@ -13,7 +13,10 @@ class MapView extends Component {
13
center: null,
14
};
15
16
- handleMapMounted = map => (this.map = map);
+ handleMapMounted = map => {
17
+ this.map = map;
18
+ this.props.onMapReady && this.props.onMapReady();
19
+ };
20
21
animateToRegion(coordinates) {
22
this.setState({ center: { lat: coordinates.latitude, lng: coordinates.longitude } });
0 commit comments