Skip to content

Commit

Permalink
Provide map instance and Maps API to callback
Browse files Browse the repository at this point in the history
That way there's no need to fish with the ref.
  • Loading branch information
wmertens committed Aug 26, 2015
1 parent dbbd52b commit 1ecd5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/gmaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Gmaps = React.createClass({
isMapCreated: true
});
if (this.props.onMapCreated) {
this.props.onMapCreated();
this.props.onMapCreated(this.map, google.maps);
}
},

Expand Down

0 comments on commit 1ecd5a5

Please sign in to comment.