Skip to content

Commit

Permalink
Merge pull request #1178 from whubsch/peru
Browse files Browse the repository at this point in the history
Adding highway shields in Peru
  • Loading branch information
claysmalley authored Jan 20, 2025
2 parents 285993e + bd162c8 commit f2239ff
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 14 deletions.
3 changes: 2 additions & 1 deletion doc-img/shield_map_world.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
5 changes: 5 additions & 0 deletions icons/shield_pe_2.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_pe_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 62 additions & 13 deletions src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,20 @@ export function loadShields() {
textHaloColor: Color.backgroundFill,
};

let escutcheonCrossbarShield = {
spriteBlank: [
"shield_escutcheon_crossbar_2",
"shield_escutcheon_crossbar_3",
],
textColor: Color.shields.black,
padding: {
left: 2,
right: 2,
top: 5.5,
bottom: 4.5,
},
};

// NORTH AMERICA
shields["GLCT"] = {
notext: true,
Expand Down Expand Up @@ -573,19 +587,7 @@ export function loadShields() {
"VER",
"YUC",
"ZAC",
].forEach(
(state) =>
(shields[`MX:${state}`] = {
spriteBlank: ["shield_mx_state_2", "shield_mx_state_3"],
textColor: Color.shields.black,
padding: {
left: 2,
right: 2,
top: 5.5,
bottom: 4.5,
},
})
);
].forEach((state) => (shields[`MX:${state}`] = escutcheonCrossbarShield));

// Ejes Viales (CDMX)
shields["MX:CDMX:EJE:CENTRAL"] = {
Expand Down Expand Up @@ -3158,6 +3160,53 @@ export function loadShields() {
textColor: Color.shields.white,
};

// Peru
shields["PE:national"] = {
spriteBlank: ["shield_pe_2", "shield_pe_3"],
textColor: Color.shields.black,
padding: {
left: 3,
right: 3,
top: 7,
bottom: 4,
},
};
[
"AM",
"AN",
"AP",
"AR",
"AY",
"CA",
"CU",
"HU",
"HV",
"IC",
"JU",
"LA",
"LI",
"LM",
"LO",
"MD",
"MO",
"PA",
"PI",
"PU",
"SM",
"TA",
"TU",
"UC",
].forEach(
(department) =>
([
shields[`PE:departmental:${department}`],
shields[`PE:rural:${department}`],
] = [
escutcheonCrossbarShield,
pillShield(Color.shields.white, Color.shields.black),
])
);

// Uruguay
shields["UY"] = homePlateDownShield(
5,
Expand Down

0 comments on commit f2239ff

Please sign in to comment.