-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
climbing: Add climbing restriction + show authors on routes #404
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -100,6 +101,8 @@ export const FeaturePanelInner = () => { | |||
<FeatureHeading /> | |||
<ParentLink /> | |||
|
|||
<ClimbingRestriction /> |
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.
@zbycz what about this? I know it shouldn't be here because it's generic FeaturePanel, but where to put it if it's for all features with climbing tag?
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.
It is OK to have parts of feature panel, which are rendered only sometimes.
In future we could extend FeaturedTags
to accomodate this, or even extend iD tagging scheme.
@@ -55,6 +55,7 @@ export const osmToClimbingRoutes = (feature: Feature): Array<ClimbingRoute> => { | |||
difficulty: getDifficulty(route.tags), | |||
paths, | |||
photoToKeyMap, | |||
author: route.tags.author, |
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.
Can you use feature.tags.author
instead of adding a new field? We will have to move all of it nevertheless.
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.
I wanted but it needs broader refactoring. Right now we have temp object for editing with ClimbingRoute type, so this whole needs to be refactored.
61a0e5d
to
94e082e
Compare
climbing not allowed on crag
climbing not allowed on area
climbing restricted on crag