Skip to content

Commit

Permalink
version 0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheleBertoli committed Aug 26, 2015
1 parent 10643c7 commit 0952125
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ const coords = {

const App = React.createClass({

onMapCreated() {
const {Gmaps} = this.refs;
console.log('onMapCreated', Gmaps.getMap());
Gmaps.getMap().setOptions({
onMapCreated(map) {
map.setOptions({
disableDefaultUI: true
});
},
Expand All @@ -60,7 +58,6 @@ const App = React.createClass({
render() {
return (
<Gmaps
ref='Gmaps'
width={'800px'}
height={'600px'}
lat={coords.lat}
Expand Down
2 changes: 1 addition & 1 deletion dist/components/gmaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var Gmaps = _react2['default'].createClass({
isMapCreated: true
});
if (this.props.onMapCreated) {
this.props.onMapCreated();
this.props.onMapCreated(this.map, google.maps);
}
},

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-gmaps",
"version": "0.3.3",
"version": "0.3.4",
"description": "A Google Maps component for React.js",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 0952125

Please sign in to comment.