From 72678d8f4f253504fdcbb1b2732662fe5f181bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Sun, 9 Oct 2022 01:45:29 -0700 Subject: [PATCH] Added Cyprus motorway shields --- doc-img/shield_map_world.svg | 1 + icons/shield_hex_vert_green_yellow_2.svg | 39 ++++++++++++++++++++++++ icons/shield_hex_vert_green_yellow_3.svg | 39 ++++++++++++++++++++++++ src/js/shield_defs.js | 10 ++++++ src/shieldtest.js | 1 + 5 files changed, 90 insertions(+) create mode 100644 icons/shield_hex_vert_green_yellow_2.svg create mode 100644 icons/shield_hex_vert_green_yellow_3.svg diff --git a/doc-img/shield_map_world.svg b/doc-img/shield_map_world.svg index 247cabc95..ddbc5d94f 100644 --- a/doc-img/shield_map_world.svg +++ b/doc-img/shield_map_world.svg @@ -141,6 +141,7 @@ See the end of this file for a list of available jurisdictions and their codes. .be, .bg, .by, +.cy, .cz, .dk, .ee, diff --git a/icons/shield_hex_vert_green_yellow_2.svg b/icons/shield_hex_vert_green_yellow_2.svg new file mode 100644 index 000000000..8847044ac --- /dev/null +++ b/icons/shield_hex_vert_green_yellow_2.svg @@ -0,0 +1,39 @@ + + + + + + diff --git a/icons/shield_hex_vert_green_yellow_3.svg b/icons/shield_hex_vert_green_yellow_3.svg new file mode 100644 index 000000000..0e86396aa --- /dev/null +++ b/icons/shield_hex_vert_green_yellow_3.svg @@ -0,0 +1,39 @@ + + + + + + diff --git a/src/js/shield_defs.js b/src/js/shield_defs.js index f70e2a34c..05dc0efc5 100644 --- a/src/js/shield_defs.js +++ b/src/js/shield_defs.js @@ -3062,6 +3062,16 @@ export function loadShields(shieldImages) { Color.shields.white ); + // Cyprus + shields["cy:national"] = { + ...hexagonVerticalShield, + backgroundImage: [ + shieldImages.shield_hex_vert_green_yellow_2, + shieldImages.shield_hex_vert_green_yellow_3, + ], + textColor: Color.shields.yellow, + }; + // Czechia shields["CZ:national"] = roundedRectShield( Color.shields.red, diff --git a/src/shieldtest.js b/src/shieldtest.js index 6f668d3cb..7267fb484 100644 --- a/src/shieldtest.js +++ b/src/shieldtest.js @@ -67,6 +67,7 @@ let networks = [ "PK:national", "AU:QLD:MR", + "cy:national", "GR:national", "my:federal", "TR:motorway",