-
Notifications
You must be signed in to change notification settings - Fork 0
Map #3
New issue
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
base: master
Are you sure you want to change the base?
Map #3
Conversation
|
|
||
|
|
||
| }, | ||
| () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error handling? (err, data) => { if (!err) {this.setState({ loading: false})} }
src/components/Map.jsx
Outdated
| markers={this.state.markers} | ||
| userLocation={this.state.userLocation} | ||
| confirmCheckpoint={this.confirmCheckpoint.bind(this)} | ||
| handleMarkerClick={this.handleMarkerClick.bind(this)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re: handleMarkerClick issue, since decorating doesn't work, could consider getting mouse position and comparing to an array of all the rendered marker positions.
| let toRad = (val) => { | ||
| /** Converts numeric degrees to radians */ | ||
| return val * Math.PI / 180; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice helper function
No description provided.