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
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
Loading