We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
map
Cannot for the life of me get this event of to fire on the child Marker anyone know why?
Marker
I have tried using onClick, using bind and onChildClick but nothing works
onClick
bind
onChildClick
onSelectMarker = marker => e => { e.preventDefault(); console.log("clicked"); }; render() { const data = this.props.searchedResponse; const Markers = data ? data.data.records.map(marker => { return ( <Marker key={marker.recordid} lat={marker.fields.geom.coordinates[1]} lng={marker.fields.geom.coordinates[0]} onChildClick={() => this.onSelectMarker(marker)} /> ); }) : null; return ( <div className="map"> <GoogleMapReact center={this.state.center} zoom={this.state.zoom} bootstrapURLKeys={{ key: process.env.REACT_APP_GOOGLE_KEY }} > {Markers} </GoogleMapReact> </div> ); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Cannot for the life of me get this event of to fire on the child
Marker
anyone know why?
I have tried using
onClick
, usingbind
andonChildClick
but nothing worksThe text was updated successfully, but these errors were encountered: