From 67b91f62a0317a49174b0b8435a564d4a182ef6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 18 Dec 2024 13:58:49 +0100 Subject: [PATCH] Radar reflectors (RADRFL) --- gpxsee.qrc | 1 + icons/map/marine/radar-reflector.png | Bin 0 -> 236 bytes src/map/ENC/mapdata.cpp | 21 +++++++++++---------- src/map/ENC/objects.h | 1 + src/map/ENC/style.cpp | 1 + 5 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 icons/map/marine/radar-reflector.png diff --git a/gpxsee.qrc b/gpxsee.qrc index 15b56a93..f5b3746f 100644 --- a/gpxsee.qrc +++ b/gpxsee.qrc @@ -206,6 +206,7 @@ icons/map/marine/kelp.png icons/map/marine/eddies.png icons/map/marine/dome.png + icons/map/marine/radar-reflector.png diff --git a/icons/map/marine/radar-reflector.png b/icons/map/marine/radar-reflector.png new file mode 100644 index 0000000000000000000000000000000000000000..69da1b2f4414ec6bdd477f2d98c9680365720201 GIT binary patch literal 236 zcmeAS@N?(olHy`uVBq!ia0vp^f*{Pn1|+R>-G2cowj^(N7l!{JxM1({$v_d#0*}aI z1_r((Aj~*bn@<`j*yHKq7-DfcIYEITu6o};e-B<^W>E&=O}$5MbouHEGcz+Eo;}07 zXVGm}$<9JMAGu}o8XFrK&s9wR(H5Gr??ir5Omhyy#dE4xcUOoCr(VcDfBn&sHcq1i z#ao?AmdF;x9BT1?`2YX^naCP{f$n1PboFyt=akR{05@AzCIA2c literal 0 HcmV?d00001 diff --git a/src/map/ENC/mapdata.cpp b/src/map/ENC/mapdata.cpp index 66cf373f..2e41d2a8 100644 --- a/src/map/ENC/mapdata.cpp +++ b/src/map/ENC/mapdata.cpp @@ -63,16 +63,17 @@ static QMap orderMapInit() map.insert(TYPE(PILPNT), 34); map.insert(TYPE(ACHBRT), 35); map.insert(TYPE(I_ACHBRT), 35); - map.insert(TYPE(CRANES), 36); - map.insert(TYPE(I_CRANES), 36); - map.insert(TYPE(I_WTWGAG), 37); - map.insert(TYPE(PYLONS), 38); - map.insert(TYPE(SLCONS), 39); - map.insert(TYPE(LNDMRK), 40); - map.insert(TYPE(SILTNK), 41); - map.insert(TYPE(LNDELV), 42); - map.insert(TYPE(SMCFAC), 43); - map.insert(TYPE(BUISGL), 44); + map.insert(TYPE(RADRFL), 36); + map.insert(TYPE(CRANES), 37); + map.insert(TYPE(I_CRANES), 37); + map.insert(TYPE(I_WTWGAG), 38); + map.insert(TYPE(PYLONS), 39); + map.insert(TYPE(SLCONS), 40); + map.insert(TYPE(LNDMRK), 41); + map.insert(TYPE(SILTNK), 42); + map.insert(TYPE(LNDELV), 43); + map.insert(TYPE(SMCFAC), 44); + map.insert(TYPE(BUISGL), 45); map.insert(TYPE(I_DISMAR), 0xFFFFFFFE); map.insert(TYPE(SOUNDG), 0xFFFFFFFF); diff --git a/src/map/ENC/objects.h b/src/map/ENC/objects.h index 652797c2..580a5bf6 100644 --- a/src/map/ENC/objects.h +++ b/src/map/ENC/objects.h @@ -67,6 +67,7 @@ #define PONTON 95 #define PRCARE 96 #define PYLONS 98 +#define RADRFL 101 #define RADSTA 102 #define RTPBCN 103 #define RDOCAL 104 diff --git a/src/map/ENC/style.cpp b/src/map/ENC/style.cpp index 1b009f14..82f36f34 100644 --- a/src/map/ENC/style.cpp +++ b/src/map/ENC/style.cpp @@ -335,6 +335,7 @@ void Style::pointStyle(qreal ratio) _points[SUBTYPE(WEDKLP, 0)] = Point(QImage(":/marine/kelp.png")); _points[SUBTYPE(WEDKLP, 1)] = Point(QImage(":/marine/kelp.png")); _points[TYPE(SEAARE)].setHaloColor(QColor()); + _points[TYPE(RADRFL)] = Point(QImage(":/marine/radar-reflector.png")); _points[SUBTYPE(SMCFAC, 7)] = Point(svg2img(":/POI/restaurant-11.svg", ratio), Small);