Skip to content

Instantly share code, notes, and snippets.

@MicheleBertoli
Last active January 6, 2016 15:57
Show Gist options
  • Save MicheleBertoli/3db28f964db694c3ec98 to your computer and use it in GitHub Desktop.
Save MicheleBertoli/3db28f964db694c3ec98 to your computer and use it in GitHub Desktop.
Map Type
import React from 'react';
import ReactDOM from 'react-dom';
import {Gmaps} from 'react-gmaps';
const App = React.createClass({
onMapCreated(map) {
map.setMapTypeId(google.maps.MapTypeId.HYBRID);
},
render() {
return (
<Gmaps
width={400}
height={300}
lat={51.5258541}
lng={-0.08040660000006028}
zoom={12}
onMapCreated={this.onMapCreated}/>
);
}
});
ReactDOM.render(<App />, document.getElementById('gmaps'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment