react google ap
import {
withScriptjs,
withGoogleMap,
GoogleMap,
Marker,
} from "react-google-maps";
const MapWithAMarker = withScriptjs(withGoogleMap(props =>
<GoogleMap
defaultZoom={8}
defaultCenter={{ lat: -34.397, lng: 150.644 }}
>
<Marker
position={{ lat: -34.397, lng: 150.644 }}
/>
</GoogleMap>
));
<MapWithAMarker
googleMapURL="https://maps.googleapis.com/maps/api/js?key=AIzaSyC4R6AN7SmujjPUIGKdyao2Kqitzr1kiRg&v=3.exp&libraries=geometry,drawing,places"
loadingElement={<div style={{ height: `100%` }} />}
containerElement={<div style={{ height: `400px` }} />}
mapElement={<div style={{ height: `100%` }} />}
/>
Also in JavaScript:
- JavaScript how do you create a screen button in 10 lines?
- upload image and video cloudinary expressjs
- console log
- js loop ul
- javascript open link in new tab
- javascript .tolowercase
- 3. What are private member variables. in js
- react memo
- javascript vs java
- ignore node modules
- how to find length of array in javascript without using length method
- SQL Developer store procedure insert json file to blob
- check if date equal js
- cookie clicker
- set headers in express
- fetch composition API in Vue3
- how to validate email in node js
- install node js in centos 7
- not selector jquery
- how to add dropdown with filter in angular material
- javascript add minutes to date
- json data example
- check if string is datestring javascript
- bind in javascript