npm google map api react
import {Map, InfoWindow, Marker, GoogleApiWrapper} from 'google-maps-react';
export class MapContainer extends Component {
render() {
return (
<Map google={this.props.google} zoom={14}>
<Marker onClick={this.onMarkerClick}
name={'Current location'} />
<InfoWindow onClose={this.onInfoWindowClose}>
<div>
<h2>{this.state.selectedPlace.name}</h2>
</div>
</InfoWindow>
</Map>
);
}
}
export default GoogleApiWrapper({
apiKey: (YOUR_GOOGLE_API_KEY_GOES_HERE)
})(MapContainer)
Also in JavaScript:
- memoization javascript
- how to count occurences in an array with javascript
- node js store add values in file
- devexpress dxdatagrid custom text field link
- javascript find the min in array of numbers
- how to submit a form in js
- cortar elemento y pegar en otro lugar jquery
- how to go back one directory in git bash
- jquery check if click to this self not this child
- jqgrid aftershowform
- remove first 3 characters from string javascript
- jquery get request
- javascript max array
- react if statement
- anime.js morph svg d value
- check for balanced parentheses in javascript
- ngingx proxy express get real ip
- oscar toledo chess javascript
- create a html table dynamically using javascript
- js copy array into another
- document ready js
- index of value in array
- setinterval nodejs
- array unique values javascript