Skip to content

Commit

Permalink
Added PRC route shields
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Feb 24, 2022
1 parent 3b273ba commit a5008b0
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 0 deletions.
6 changes: 6 additions & 0 deletions style/icons/shield40_cn_national_expressway_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions style/icons/shield40_cn_national_expressway_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions style/icons/shield40_cn_national_expressway_4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions style/icons/shield40_cn_regional_expressway_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions style/icons/shield40_cn_regional_expressway_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions style/icons/shield40_cn_regional_expressway_4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions style/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,85 @@ export function loadShields(shieldImages) {
shields["US:WA:Alternate"] = banneredShield(shields["US:WA"], ["ALT"]);

// Asia
shields["CN:national"] = roundedRectShield(
"#bf2033",
"white",
"white",
2,
1,
null
);
shields["CN:expressway"] = {
backgroundImage: [
shieldImages.shield40_cn_national_expressway_2,
shieldImages.shield40_cn_national_expressway_3,
shieldImages.shield40_cn_national_expressway_4,
],
textColor: "white",
padding: {
left: 2,
right: 2,
top: 6,
bottom: 2,
},
};
[
"AH",
"BJ",
"CQ",
"FJ",
"GD",
"GS",
"GX",
"GZ",
"HA",
"HB",
"HE",
"HI",
"HL",
"HN",
"JL",
"JS",
"JX",
"LN",
"NM",
"NX",
"QH",
"SC",
"SD",
"SH",
"SN",
"SX",
"TJ",
"XJ",
"XZ",
"YN",
"ZJ",
].forEach((province) => {
shields[`CN:${province}`] = roundedRectShield(
"#ffcd00",
"black",
"black",
2,
1,
null
);
shields[`CN:${province}:expressway`] = {
backgroundImage: [
shieldImages.shield40_cn_regional_expressway_2,
shieldImages.shield40_cn_regional_expressway_3,
shieldImages.shield40_cn_regional_expressway_4,
],
textColor: "white",
padding: {
left: 2,
right: 2,
top: 6,
bottom: 2,
},
};
});

shields["TW:freeway"] = {
backgroundImage: shieldImages.shield40_tw_freeway,
textLayoutConstraint: ShieldText.ellipseTextConstraint,
Expand Down

0 comments on commit a5008b0

Please sign in to comment.