-
Notifications
You must be signed in to change notification settings - Fork 61
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
Shields of Kentucky #119
Shields of Kentucky #119
Changes from all commits
a5c492a
7fe0d0e
c0c18c7
5161ae8
25787bd
25ea00e
9e750ad
1958e71
ad1ac96
4a9f106
f15438e
2c4d7e0
45a9192
212942b
c3ee2fc
700da78
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -244,6 +244,41 @@ export function loadShields(shieldImages) { | |
}; | ||
|
||
shields["US:KY"] = roundedRectShield("white", "black", "black", 8, 1, null); | ||
shields["US:KY:AA"] = { | ||
backgroundImage: shieldImages.shield40_us_ky_parkway, | ||
textColor: "#003f87", | ||
padding: { | ||
left: 2, | ||
right: 2, | ||
top: 2, | ||
bottom: 6, | ||
}, | ||
}; | ||
shields["US:KY:Parkway"] = Object.assign( | ||
{ | ||
// FIXME: This object contains both spelled-out and abbreviated road | ||
// names to accommodate both the abbreviated names from OpenMapTiles and | ||
// the spelled-out names from Planetiler. | ||
// https://github.com/onthegomap/planetiler/issues/14 | ||
refsByWayName: { | ||
"Audubon Parkway": "AU", | ||
"Bluegrass Parkway": "BG", | ||
"Bluegrass Pkwy": "BG", | ||
"Cumberland Parkway": "LN", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The inclusion of these spelled-out versions is for forward-compatibility with any Planetiler-generated vector tiles. Once onthegomap/planetiler#14 is implemented, we can delete these extra entries. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's include this note as a comment here or open a new ticket so we don't lose track of it. |
||
"Cumberland Pkwy": "LN", | ||
"Hal Rogers Parkway": "HR", | ||
"Hal Rogers Pkwy": "HR", | ||
"Mountain Parkway": "MP", | ||
"Mountain Pkwy": "MP", | ||
"Purchase Parkway": "JC", | ||
"Purchase Pkwy": "JC", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I extracted these initialisms from KYTC’s internal alphanumeric route numbers. Some of them are pretty recognizable, but some like “JC” are more obscure. (It’s from the namesake in the official name.) For the benefit of non-locals who don’t remember the older, more usable shields, I’d be open to changing it to something more intuitive, like “P”, but such ad-hoc abbreviations definitely shouldn’t go into OSM. |
||
"Western Kentucky Parkway": "WK", | ||
"Western Kentucky Pkwy": "WK", | ||
}, | ||
}, | ||
shields["US:KY:AA"] | ||
); | ||
|
||
shields["US:MI"] = diamondShield; | ||
|
||
shields["US:MN"] = { | ||
|
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 took a pass on instructions for crafting a shield definition object. As part of these instructions, I detailed the rationale for
refsByWayName
with enough conditions that hopefully it won’t open the floodgates to any end-runs around OSM.