@react-google-maps/api
Version:
React.js Google Maps API integration
31 lines (28 loc) • 606 B
Markdown
```jsx
const { GoogleMap, LoadScript } = require("../../");
const ScriptLoaded = require("../../docs/ScriptLoaded").default;
<ScriptLoaded>
<GoogleMap
id='bicycling-example'
mapContainerStyle={{
height: "400px",
width: "800px"
}}
zoom={14}
center={{
lat: 42.3726399,
lng: -71.1096528
}}
onClick={(...args) => {
console.log('onClick args: ', args)
}}
>
<BicyclingLayer
onLoad={bicyclingLayer => {
console.log('bicyclingLayer: ', bicyclingLayer)
}}
/>
</GoogleMap>
</ScriptLoaded>
```