Skip to content

Commit

Permalink
Merge pull request #415 from bgo-eiu/hexagon_blue_PK-NH
Browse files Browse the repository at this point in the history
Blue hexagon shields for Pakistan National Highways
  • Loading branch information
claysmalley authored Jul 13, 2022
2 parents af03369 + 3e22990 commit abbcaef
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions 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
3 changes: 3 additions & 0 deletions icons/shield_hex_horz_blue_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions icons/shield_pk_motorway.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 22 additions & 2 deletions src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,10 @@ export function loadShields(shieldImages) {
};

let hexagonHorizontalShieldBlue = {
backgroundImage: shieldImages.shield_hex_horz_blue,
backgroundImage: [
shieldImages.shield_hex_horz_blue_2,
shieldImages.shield_hex_horz_blue_3,
],
textLayoutConstraint: ShieldText.ellipseTextConstraint,
textColor: Color.shields.white,
padding: {
Expand Down Expand Up @@ -2619,7 +2622,10 @@ export function loadShields(shieldImages) {
// Japan
shields["JP:E"] = roundedRectShield(Color.shields.green, Color.shields.white);
shields["JP:national"] = triangleConvexDownShieldBlue;
shields["JP:prefectural"] = hexagonHorizontalShieldBlue;
shields["JP:prefectural"] = {
...hexagonHorizontalShieldBlue,
backgroundImage: shieldImages.shield_hex_horz_blue_2,
};
[
"aichi",
"akita",
Expand Down Expand Up @@ -2689,6 +2695,20 @@ export function loadShields(shieldImages) {
shields["PH:N"] = homeDownShield;
shields["PH:E"] = homeDownShieldYellow;

// Pakistan
shields["PK:national"] = hexagonHorizontalShieldBlue;
shields["PK:motorway"] = {
backgroundImage: shieldImages.shield_pk_motorway,
textLayoutConstraint: ShieldText.southHalfellipseTextConstraint,
textColor: Color.shields.white,
padding: {
left: 2,
right: 2,
top: 2,
bottom: 7,
},
};

// South Korea
shields["KR:expressway"] = {
backgroundImage: [
Expand Down

0 comments on commit abbcaef

Please sign in to comment.