Skip to content

Commit

Permalink
Merge pull request #1080 from ZeLonewolf/clay-shields-ca-on-parkways
Browse files Browse the repository at this point in the history
Add shields for expressways in Ontario, Canada
  • Loading branch information
claysmalley authored May 30, 2024
2 parents 9d05510 + 5277fce commit ac6988a
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
4 changes: 4 additions & 0 deletions icons/shield_ca_on_hamilton_blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/shield_ca_on_hamilton_green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions icons/shield_ca_on_toronto.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,32 @@ export function loadShields() {
shields["CA:ON:Muskoka:West"] = banneredShield(shields["CA:ON:Muskoka"], [
"WEST",
]);
shields["CA:ON:Hamilton:Expressway"] = {
notext: true,
overrideByName: {
"Lincoln M. Alexander Parkway": {
spriteBlank: "shield_ca_on_hamilton_blue",
},
"Red Hill Valley Parkway": {
spriteBlank: "shield_ca_on_hamilton_green",
},
},
};
shields["CA:ON:Toronto:Expressway"] = {
spriteBlank: "shield_ca_on_toronto",
textColor: Color.shields.black,
textLayout: textConstraint("ellipse"),
padding: {
left: 5,
right: 5,
top: 5,
bottom: 5,
},
refsByName: {
"Don Valley Parkway": "DV",
"Gardiner Expressway": "G",
},
};

// Prince Edward Island
shields["CA:PE"] = {
Expand Down
8 changes: 8 additions & 0 deletions src/shieldtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@ const iterShields = function* () {
network: "CA:ON:primary",
refs: ["QEW"],
};
yield {
network: "CA:ON:Hamilton:Expressway",
names: ["Lincoln M. Alexander Parkway", "Red Hill Valley Parkway"],
};
yield {
network: "CA:ON:Toronto:Expressway",
refs: ["DV", "G"],
};
yield {
network: "GLCT",
refs: ["LECT", "LHCT", "LMCT", "LSCT"],
Expand Down

0 comments on commit ac6988a

Please sign in to comment.