Skip to content

Conversation

@lindentree
Copy link
Contributor

No description provided.

@lindentree lindentree requested review from theresa-li and vh02 May 19, 2019 18:48


},
() => {
Copy link
Contributor

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})} }

markers={this.state.markers}
userLocation={this.state.userLocation}
confirmCheckpoint={this.confirmCheckpoint.bind(this)}
handleMarkerClick={this.handleMarkerClick.bind(this)}
Copy link
Contributor

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;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice helper function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants