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 highway shields in Peru #1178

Merged
merged 9 commits into from
Jan 20, 2025
Merged

Adding highway shields in Peru #1178

merged 9 commits into from
Jan 20, 2025

Conversation

whubsch
Copy link
Contributor

@whubsch whubsch commented Dec 10, 2024

This PR adds the Peruvian national, departmental, and rural route shields to the map after some tagging changes. Only the national routes required a new shield.

Localhost link
Screenshot 2024-12-09 at 10 59 51 PM

Pan-American, national, departmental, and rural highway shields in Peru
Screenshot 2024-11-30 at 6 50 00 PM

shields[`PE:departmental:${department}`],
shields[`PE:rural:${department}`],
] = [
escutcheonDownShield(12, Color.shields.white, Color.shields.black),
Copy link
Member

Choose a reason for hiding this comment

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

These shields are visually closer to the state highway shields of Mexico (see line 584). Let's factor that out into a reusable shield definition and use it here.

Side note: this is making it really clear how much we need a draw function for badge shields, and maybe support for crossbars and accent colors in some of the functions...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, this should be addressed with the latest commit.

@whubsch
Copy link
Contributor Author

whubsch commented Jan 7, 2025

Ok, turning back to this after the holidays. I've moved the definition for the crossbar'd escutcheon shield so that it can be reused, and renamed those svg files to have a more generic name (shield_escutcheon_crossbar_X).

Screenshot 2025-01-07 at 4 14 30 PM

Copy link
Member

@claysmalley claysmalley left a comment

Choose a reason for hiding this comment

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

Thank you!

@claysmalley claysmalley merged commit f2239ff into osm-americana:main Jan 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants