google-map-reactの使い方とoptions

What's this

シンプルで使いやすいGoogle Maps APIのreact向けwrapper

GitHub - istarkov/google-map-react: universal google map react component, allows render react components on the google map

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>