Last active
April 30, 2020 02:46
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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