@react-google-maps/api
Version:
React.js Google Maps API integration
39 lines (33 loc) • 676 B
Markdown
# Ground Overlay example
```jsx
const { GoogleMap, LoadScript } = require("../../");
const ScriptLoaded = require("../../docs/ScriptLoaded").default;
const mapContainerStyle = {
height: "400px",
width: "800px"
};
const center = {
lat: 40.740,
lng: -74.18
};
const bounds = {
north: 40.773941,
south: 40.712216,
east: -74.12544,
west: -74.22655
};
<ScriptLoaded>
<GoogleMap
id="circle-example"
mapContainerStyle={mapContainerStyle}
zoom={13}
center={center}
>
<GroundOverlayF
key={'url'}
url='https://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg'
bounds={bounds}
/>
</GoogleMap>
</ScriptLoaded>
```