mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-03-14 11:07:45 +01:00
Improved ENC fishing farms rendering
This commit is contained in:
parent
6c80d89c89
commit
a3f1d25d63
@ -216,6 +216,7 @@
|
|||||||
<file alias="tanker-anchorage.png">icons/map/marine/tanker-anchorage.png</file>
|
<file alias="tanker-anchorage.png">icons/map/marine/tanker-anchorage.png</file>
|
||||||
<file alias="nature-reserve-line.png">icons/map/marine/nature-reserve-line.png</file>
|
<file alias="nature-reserve-line.png">icons/map/marine/nature-reserve-line.png</file>
|
||||||
<file alias="sanctuary-line.png">icons/map/marine/sanctuary-line.png</file>
|
<file alias="sanctuary-line.png">icons/map/marine/sanctuary-line.png</file>
|
||||||
|
<file alias="fishing-farm.png">icons/map/marine/fishing-farm.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
|
||||||
<!-- Patterns (Mapsforge) -->
|
<!-- Patterns (Mapsforge) -->
|
||||||
|
BIN
icons/map/marine/fishing-farm.png
Normal file
BIN
icons/map/marine/fishing-farm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 269 B |
@ -362,6 +362,8 @@ MapData::Point::Point(uint type, const Coordinates &c, const Attributes &attr,
|
|||||||
subtype = CATACH;
|
subtype = CATACH;
|
||||||
else if (type == I_ACHARE)
|
else if (type == I_ACHARE)
|
||||||
subtype = I_CATACH;
|
subtype = I_CATACH;
|
||||||
|
else if (type == MARKUL)
|
||||||
|
subtype = CATMFA;
|
||||||
|
|
||||||
QList<QByteArray> list(_attr.value(subtype).split(','));
|
QList<QByteArray> list(_attr.value(subtype).split(','));
|
||||||
std::sort(list.begin(), list.end());
|
std::sort(list.begin(), list.end());
|
||||||
|
@ -141,6 +141,7 @@ void Style::polygonStyle()
|
|||||||
1.5, Qt::DashLine));
|
1.5, Qt::DashLine));
|
||||||
_polygons[TYPE(CBLARE)] = Polygon(QImage(":/marine/cable-area-line.png"));
|
_polygons[TYPE(CBLARE)] = Polygon(QImage(":/marine/cable-area-line.png"));
|
||||||
_polygons[TYPE(PIPARE)] = Polygon(QImage(":/marine/pipeline-area-line.png"));
|
_polygons[TYPE(PIPARE)] = Polygon(QImage(":/marine/pipeline-area-line.png"));
|
||||||
|
_polygons[SUBTYPE(MARKUL, 0)] = Polygon(QImage(":/marine/fishing-farm-line.png"));
|
||||||
_polygons[SUBTYPE(MARKUL, 3)] = Polygon(QImage(":/marine/fishing-farm-line.png"));
|
_polygons[SUBTYPE(MARKUL, 3)] = Polygon(QImage(":/marine/fishing-farm-line.png"));
|
||||||
_polygons[TYPE(BERTHS)] = Polygon(Qt::NoBrush, QPen(QColor(0xeb, 0x49, 0xeb),
|
_polygons[TYPE(BERTHS)] = Polygon(Qt::NoBrush, QPen(QColor(0xeb, 0x49, 0xeb),
|
||||||
1, Qt::DashLine));
|
1, Qt::DashLine));
|
||||||
@ -180,7 +181,8 @@ void Style::polygonStyle()
|
|||||||
<< SUBTYPE(RESARE, 17) << SUBTYPE(I_RESARE, 17) << SUBTYPE(RESARE, 22)
|
<< SUBTYPE(RESARE, 17) << SUBTYPE(I_RESARE, 17) << SUBTYPE(RESARE, 22)
|
||||||
<< SUBTYPE(I_RESARE, 22) << SUBTYPE(RESARE, 23) << SUBTYPE(I_RESARE, 23)
|
<< SUBTYPE(I_RESARE, 22) << SUBTYPE(RESARE, 23) << SUBTYPE(I_RESARE, 23)
|
||||||
<< SUBTYPE(RESARE, 1) << TYPE(CBLARE) << TYPE(PIPARE) << TYPE(PRCARE)
|
<< SUBTYPE(RESARE, 1) << TYPE(CBLARE) << TYPE(PIPARE) << TYPE(PRCARE)
|
||||||
<< TYPE(I_TRNBSN) << SUBTYPE(MARKUL, 3) << TYPE(CONZNE);
|
<< TYPE(I_TRNBSN) << SUBTYPE(MARKUL, 0) << SUBTYPE(MARKUL, 3)
|
||||||
|
<< TYPE(CONZNE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Style::lineStyle(qreal ratio)
|
void Style::lineStyle(qreal ratio)
|
||||||
@ -393,6 +395,8 @@ void Style::pointStyle(qreal ratio)
|
|||||||
_points[TYPE(LNDARE)].setHaloColor(QColor());
|
_points[TYPE(LNDARE)].setHaloColor(QColor());
|
||||||
_points[TYPE(LNDRGN)].setHaloColor(QColor());
|
_points[TYPE(LNDRGN)].setHaloColor(QColor());
|
||||||
_points[TYPE(RADRFL)] = Point(QImage(":/marine/radar-reflector.png"));
|
_points[TYPE(RADRFL)] = Point(QImage(":/marine/radar-reflector.png"));
|
||||||
|
_points[SUBTYPE(MARKUL, 0)] = Point(QImage(":/marine/fishing-farm.png"));
|
||||||
|
_points[SUBTYPE(MARKUL, 3)] = Point(QImage(":/marine/fishing-farm.png"));
|
||||||
|
|
||||||
_points[SUBTYPE(I_BERTHS, 6)] = Point(QImage(":/marine/fleeting-area.png"),
|
_points[SUBTYPE(I_BERTHS, 6)] = Point(QImage(":/marine/fleeting-area.png"),
|
||||||
Small);
|
Small);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user