mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Added some more missing marine symbols
This commit is contained in:
parent
5e29c12881
commit
8730206939
@ -166,6 +166,8 @@
|
|||||||
<file alias="windmill.png">icons/map/marine/windmill.png</file>
|
<file alias="windmill.png">icons/map/marine/windmill.png</file>
|
||||||
<file alias="flagstaff.png">icons/map/marine/flagstaff.png</file>
|
<file alias="flagstaff.png">icons/map/marine/flagstaff.png</file>
|
||||||
<file alias="deviation-dolphin.png">icons/map/marine/deviation-dolphin.png</file>
|
<file alias="deviation-dolphin.png">icons/map/marine/deviation-dolphin.png</file>
|
||||||
|
<file alias="kelp.png">icons/map/marine/kelp.png</file>
|
||||||
|
<file alias="eddies.png">icons/map/marine/eddies.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
|
||||||
<!-- Mapsforge rendertheme -->
|
<!-- Mapsforge rendertheme -->
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 419 B |
BIN
icons/map/marine/eddies.png
Normal file
BIN
icons/map/marine/eddies.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 504 B |
BIN
icons/map/marine/kelp.png
Normal file
BIN
icons/map/marine/kelp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 924 B |
Binary file not shown.
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 630 B |
@ -14,6 +14,7 @@
|
|||||||
#define CATSIL 63
|
#define CATSIL 63
|
||||||
#define CATSCF 65
|
#define CATSCF 65
|
||||||
#define CATWAT 69
|
#define CATWAT 69
|
||||||
|
#define CATWED 70
|
||||||
#define CATWRK 71
|
#define CATWRK 71
|
||||||
#define COMCHA 77
|
#define COMCHA 77
|
||||||
#define CURVEL 84
|
#define CURVEL 84
|
||||||
|
@ -241,6 +241,18 @@ static QString sistat(uint type)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static QString weed(uint type)
|
||||||
|
{
|
||||||
|
switch (type) {
|
||||||
|
case 2:
|
||||||
|
return "Wd";
|
||||||
|
case 3:
|
||||||
|
return "Sg";
|
||||||
|
default:
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
MapData::Point::Point(uint type, const Coordinates &c, const QString &label,
|
MapData::Point::Point(uint type, const Coordinates &c, const QString &label,
|
||||||
const QVector<QByteArray> ¶ms) : _type(type), _pos(c), _label(label)
|
const QVector<QByteArray> ¶ms) : _type(type), _pos(c), _label(label)
|
||||||
{
|
{
|
||||||
@ -262,6 +274,9 @@ MapData::Point::Point(uint type, const Coordinates &c, const QString &label,
|
|||||||
if (_label.isEmpty())
|
if (_label.isEmpty())
|
||||||
_label = sistat(type & 0xFF);
|
_label = sistat(type & 0xFF);
|
||||||
_type = TYPE(SISTAT);
|
_type = TYPE(SISTAT);
|
||||||
|
} else if (type>>16 == WEDKLP) {
|
||||||
|
if (_label.isEmpty())
|
||||||
|
_label = weed(type & 0xFF);
|
||||||
} else if (type>>16 == LNDELV && params.size()) {
|
} else if (type>>16 == LNDELV && params.size()) {
|
||||||
if (_label.isEmpty())
|
if (_label.isEmpty())
|
||||||
_label = QString::fromLatin1(params.at(0))
|
_label = QString::fromLatin1(params.at(0))
|
||||||
@ -558,7 +573,8 @@ MapData::Attr MapData::pointAttr(const ISO8211::Record &r, uint OBJL)
|
|||||||
|| (OBJL == I_SISTAT && key == I_CATSIT)
|
|| (OBJL == I_SISTAT && key == I_CATSIT)
|
||||||
|| (OBJL == RDOCAL && key == TRAFIC)
|
|| (OBJL == RDOCAL && key == TRAFIC)
|
||||||
|| (OBJL == I_RDOCAL && key == TRAFIC)
|
|| (OBJL == I_RDOCAL && key == TRAFIC)
|
||||||
|| (OBJL == SILTNK && key == CATSIL))
|
|| (OBJL == SILTNK && key == CATSIL)
|
||||||
|
|| (OBJL == WEDKLP && key == CATWED))
|
||||||
subtype = av.at(1).toByteArray().toUInt();
|
subtype = av.at(1).toByteArray().toUInt();
|
||||||
else if (OBJL == I_DISMAR && key == CATDIS)
|
else if (OBJL == I_DISMAR && key == CATDIS)
|
||||||
subtype |= av.at(1).toByteArray().toUInt();
|
subtype |= av.at(1).toByteArray().toUInt();
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
#define UWTROC 153
|
#define UWTROC 153
|
||||||
#define UNSARE 154
|
#define UNSARE 154
|
||||||
#define WATTUR 156
|
#define WATTUR 156
|
||||||
|
#define WEDKLP 158
|
||||||
#define WRECKS 159
|
#define WRECKS 159
|
||||||
#define M_COVR 302
|
#define M_COVR 302
|
||||||
|
|
||||||
|
@ -323,12 +323,15 @@ void Style::pointStyle(qreal ratio)
|
|||||||
_points[TYPE(PYLONS)] = Point(QImage(":/marine/pylon.png"));
|
_points[TYPE(PYLONS)] = Point(QImage(":/marine/pylon.png"));
|
||||||
_points[SUBTYPE(I_BERTHS, 6)] = Point(QImage(":/marine/fleeting-area.png"));
|
_points[SUBTYPE(I_BERTHS, 6)] = Point(QImage(":/marine/fleeting-area.png"));
|
||||||
_points[SUBTYPE(WATTUR, 1)] = Point(QImage(":/marine/breakers.png"));
|
_points[SUBTYPE(WATTUR, 1)] = Point(QImage(":/marine/breakers.png"));
|
||||||
|
_points[SUBTYPE(WATTUR, 2)] = Point(QImage(":/marine/eddies.png"));
|
||||||
_points[SUBTYPE(WATTUR, 3)] = Point(QImage(":/marine/overfalls.png"));
|
_points[SUBTYPE(WATTUR, 3)] = Point(QImage(":/marine/overfalls.png"));
|
||||||
_points[SUBTYPE(WATTUR, 4)] = Point(QImage(":/marine/overfalls.png"));
|
_points[SUBTYPE(WATTUR, 4)] = Point(QImage(":/marine/overfalls.png"));
|
||||||
_points[TYPE(PILBOP)] = Point(QImage(":/marine/boarding-place.png"));
|
_points[TYPE(PILBOP)] = Point(QImage(":/marine/boarding-place.png"));
|
||||||
_points[TYPE(SISTAT)] = Point(QImage(":/marine/pylon.png"));
|
_points[TYPE(SISTAT)] = Point(QImage(":/marine/pylon.png"));
|
||||||
_points[TYPE(SLCONS)] = Point(QImage(":/marine/construction.png"), Small);
|
_points[TYPE(SLCONS)] = Point(QImage(":/marine/construction.png"), Small);
|
||||||
_points[TYPE(CURENT)] = Point(QImage(":/marine/current.png"));
|
_points[TYPE(CURENT)] = Point(QImage(":/marine/current.png"));
|
||||||
|
_points[SUBTYPE(WEDKLP, 0)] = Point(QImage(":/marine/kelp.png"));
|
||||||
|
_points[SUBTYPE(WEDKLP, 1)] = Point(QImage(":/marine/kelp.png"));
|
||||||
|
|
||||||
_points[SUBTYPE(SMCFAC, 7)] = Point(svg2img(":/POI/restaurant-11.svg",
|
_points[SUBTYPE(SMCFAC, 7)] = Point(svg2img(":/POI/restaurant-11.svg",
|
||||||
ratio), Small);
|
ratio), Small);
|
||||||
|
Loading…
Reference in New Issue
Block a user