google-map-reactの使い方とoptions
What's this
シンプルで使いやすいGoogle Maps APIのreact向けwrapper
maps options
Google Maps JavaScript API V3 Reference | Google Maps JavaScript API | Google Developers
code example
<div className={`container`}> <GoogleMap options={MAP_OPTIONS} bootstrapURLKeys={URL_KEYS} defaultCenter={this.props.center} defaultZoom={this.props.zoom} onChange={this.onChange.bind(this)} > {markers.Markers.map((marker, index) => <MyGreatPlace key={index} onTouchTap={() => this.onTapMarker(index)} lat={marker.lat} lng={marker.lng} text={index.toString()} /> )} </GoogleMap> </div>