From 6b6d72854538a2a5e737eb7dcb74c7c18870f265 Mon Sep 17 00:00:00 2001 From: Will Date: Sat, 30 Nov 2024 19:14:41 -0500 Subject: [PATCH 1/2] Adding Peru route shields --- icons/shield_pe_2.svg | 30 +++++++++++++++++++++++++++ icons/shield_pe_3.svg | 27 +++++++++++++++++++++++++ src/js/shield_defs.js | 47 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 icons/shield_pe_2.svg create mode 100644 icons/shield_pe_3.svg diff --git a/icons/shield_pe_2.svg b/icons/shield_pe_2.svg new file mode 100644 index 000000000..b7e2ad615 --- /dev/null +++ b/icons/shield_pe_2.svg @@ -0,0 +1,30 @@ + + + + + + + diff --git a/icons/shield_pe_3.svg b/icons/shield_pe_3.svg new file mode 100644 index 000000000..78650fdfa --- /dev/null +++ b/icons/shield_pe_3.svg @@ -0,0 +1,27 @@ + + + + + + + diff --git a/src/js/shield_defs.js b/src/js/shield_defs.js index e1876185a..343bc808d 100644 --- a/src/js/shield_defs.js +++ b/src/js/shield_defs.js @@ -3150,6 +3150,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}`], + ] = [ + escutcheonDownShield(12, Color.shields.white, Color.shields.black), + pillShield(Color.shields.white, Color.shields.black), + ]) + ); + // Uruguay shields["UY"] = homePlateDownShield( 5, From eac568ee297178faa9e3bf44827f4b6016a61271 Mon Sep 17 00:00:00 2001 From: Will Date: Mon, 9 Dec 2024 22:57:29 -0500 Subject: [PATCH 2/2] Updating status map and running code_format --- doc-img/shield_map_world.svg | 3 ++- icons/shield_pe_2.svg | 33 ++++----------------------------- icons/shield_pe_3.svg | 30 ++++-------------------------- 3 files changed, 10 insertions(+), 56 deletions(-) diff --git a/doc-img/shield_map_world.svg b/doc-img/shield_map_world.svg index 7402f7dc3..45d72ed4c 100644 --- a/doc-img/shield_map_world.svg +++ b/doc-img/shield_map_world.svg @@ -118,9 +118,10 @@ See the end of this file for a list of available jurisdictions and their codes. .ht, .mx, .us, -.bo, .cl, .co, +.bo, +.pe, .uy, .ve, .dz, diff --git a/icons/shield_pe_2.svg b/icons/shield_pe_2.svg index b7e2ad615..edcef187a 100644 --- a/icons/shield_pe_2.svg +++ b/icons/shield_pe_2.svg @@ -1,30 +1,5 @@ - - - - - - + + + + diff --git a/icons/shield_pe_3.svg b/icons/shield_pe_3.svg index 78650fdfa..37ddb0420 100644 --- a/icons/shield_pe_3.svg +++ b/icons/shield_pe_3.svg @@ -1,27 +1,5 @@ - - - - - - + + + +