Skip to content

Instantly share code, notes, and snippets.

@sabesansathananthan
Last active April 30, 2020 02:46
Show Gist options
  • Save sabesansathananthan/5dca612b59764f83ff108244ddc8dfaa to your computer and use it in GitHub Desktop.
Save sabesansathananthan/5dca612b59764f83ff108244ddc8dfaa to your computer and use it in GitHub Desktop.
How to use the Google Maps API with Custom styling in React.js
export class Maps extends React.Component {
render() {
const mapStyles = {
width: "100%",
height: "100%",
};
return (
<Map
google={this.props.google}
zoom={15}
style={mapStyles}
initialCenter={{ lat: 9.761927, lng: 79.95244 }}
/>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment