1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-27 11:39:16 +02:00

Distinguish silos and tanks

This commit is contained in:
2023-09-10 11:41:38 +02:00
parent 8c67df7bbd
commit 1124a1adb4
6 changed files with 9 additions and 2 deletions

View File

@ -11,6 +11,7 @@
#define CATTRK 54
#define CATREA 56
#define CATSIT 61
#define CATSIL 63
#define CATSCF 65
#define CATWAT 69
#define CATWRK 71

View File

@ -560,7 +560,8 @@ MapData::Attr MapData::pointAttr(const ISO8211::Record &r, uint OBJL)
|| (OBJL == SISTAT && key == CATSIT)
|| (OBJL == I_SISTAT && key == I_CATSIT)
|| (OBJL == RDOCAL && key == TRAFIC)
|| (OBJL == I_RDOCAL && key == TRAFIC))
|| (OBJL == I_RDOCAL && key == TRAFIC)
|| (OBJL == SILTNK && key == CATSIL))
subtype = av.at(1).toByteArray().toUInt();
else if (OBJL == I_DISMAR && key == CATDIS)
subtype |= av.at(1).toByteArray().toUInt();

View File

@ -254,7 +254,11 @@ void Style::pointStyle()
_points[TYPE(RDOSTA)] = Point(QImage(":/marine/radio.png"));
_points[TYPE(RADSTA)] = Point(QImage(":/marine/radar.png"));
_points[TYPE(RTPBCN)] = Point(QImage(":/marine/radar-transponder.png"));
_points[TYPE(SILTNK)] = Point(QImage(":/marine/silo.png"));
_points[SUBTYPE(SILTNK, 0)] = Point(QImage(":/marine/silo.png"));
_points[SUBTYPE(SILTNK, 1)] = Point(QImage(":/marine/silo.png"));
_points[SUBTYPE(SILTNK, 2)] = Point(QImage(":/marine/tank.png"));
_points[SUBTYPE(SILTNK, 3)] = Point(QImage(":/marine/silo.png"));
_points[SUBTYPE(SILTNK, 4)] = Point(QImage(":/marine/silo.png"));
_points[TYPE(I_TRNBSN)] = Point(QImage(":/marine/turning-basin.png"));
_points[TYPE(I_TRNBSN)].setTextColor(QColor("#eb49eb"));
_points[TYPE(I_WTWGAG)] = Point(QImage(":/marine/gauge.png"), Small);