Skip to content
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

Adding bike infra on the map #205

Merged
merged 4 commits into from
Jan 19, 2024
Merged

Adding bike infra on the map #205

merged 4 commits into from
Jan 19, 2024

Conversation

shabnomnom
Copy link
Contributor

closes #172.
@arindam1993 and I worked on this issue together.
We use the existing _describeBikeInfraFromCyclewayAndRoadClass function from the geometry.js to create a new lineString property called bike_infra. We then injected this property in the getLabelTextField function to style the map with the bike_infra property instead of cycleway and road_class.

@graue
Copy link
Contributor

graue commented Dec 7, 2022

Awesome! How does this look? Can you include screenshots at different zoom levels? One thing I've been concerned about here is that "protected bike lane" is so verbose, it might be hard to get it to actually show up, especially now that we show the full street name alongside. We can tweak this too, of course, but I'd just like to make sure "protected bike lane" in particular isn't too verbose to render well.

Happy to see a PR by a new contributor, welcome!

@@ -482,20 +482,12 @@ function getLabelTextField() {
const text = [
'case',
// Bikeable highways display the type with optional street name
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is worth updating, since you're no longer using the "bikeable highways" list here

graue added 3 commits January 17, 2024 16:44
since we are no longer converting underscores to spaces this has to
change to get the dashed green style for shared roads
I have an idea for how to do this, but I think it makes more sense to do
separately and also cover the descriptors shown in the detailed
itinerary, such as "very steep hill (max grade 16%), main road".
@graue
Copy link
Contributor

graue commented Jan 18, 2024

Thanks again for this @shabnomnom! I made some updates and will try to merge it.

infra-1
infra-2

@graue graue merged commit 723d642 into main Jan 19, 2024
3 checks passed
@graue graue deleted the shabnam-bike-infra-on-map branch January 19, 2024 21:56
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.

Use familiar terms for bike infra on map
2 participants