Skip to content

Commit eb81ee9

Browse files
committed
Shellfish farms
1 parent 0c0d5dd commit eb81ee9

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

gpxsee.qrc

+1
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@
218218
<file alias="nature-reserve-line.png">icons/map/marine/nature-reserve-line.png</file>
219219
<file alias="sanctuary-line.png">icons/map/marine/sanctuary-line.png</file>
220220
<file alias="fishing-farm.png">icons/map/marine/fishing-farm.png</file>
221+
<file alias="shellfish-farm-line.png">icons/map/marine/shellfish-farm-line.png</file>
221222
</qresource>
222223

223224
<!-- Patterns (Mapsforge) -->
335 Bytes
Loading

src/map/ENC/mapdata.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ MapData::Point::Point(uint type, const Coordinates &c, const Attributes &attr,
375375
subtype = CATACH;
376376
else if (type == I_ACHARE)
377377
subtype = I_CATACH;
378-
else if (type == MARKUL)
378+
else if (type == MARCUL)
379379
subtype = CATMFA;
380380
else if (type == I_BUNSTA)
381381
subtype = I_CATBUN;
@@ -436,7 +436,7 @@ MapData::Poly::Poly(uint type, const Polygon &path, const Attributes &attr,
436436
subtype = I_CATACH;
437437
else if (type == HRBFAC)
438438
subtype = CATHAF;
439-
else if (type == MARKUL)
439+
else if (type == MARCUL)
440440
subtype = CATMFA;
441441
else if (type == I_BERTHS)
442442
subtype = I_CATBRT;

src/map/ENC/objects.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#define LNDMRK 74
5656
#define LIGHTS 75
5757
#define LOKBSN 79
58-
#define MARKUL 82
58+
#define MARCUL 82
5959
#define MORFAC 84
6060
#define NAVLNE 85
6161
#define OBSTRN 86

src/map/ENC/style.cpp

+8-5
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ void Style::polygonStyle()
147147
1.5, Qt::DashLine));
148148
_polygons[TYPE(CBLARE)] = Polygon(QImage(":/marine/cable-area-line.png"));
149149
_polygons[TYPE(PIPARE)] = Polygon(QImage(":/marine/pipeline-area-line.png"));
150-
_polygons[SUBTYPE(MARKUL, 0)] = Polygon(QImage(":/marine/fishing-farm-line.png"));
151-
_polygons[SUBTYPE(MARKUL, 3)] = Polygon(QImage(":/marine/fishing-farm-line.png"));
150+
_polygons[SUBTYPE(MARCUL, 0)] = Polygon(QImage(":/marine/fishing-farm-line.png"));
151+
_polygons[SUBTYPE(MARCUL, 1)] = Polygon(QImage(":/marine/shellfish-farm-line.png"));
152+
_polygons[SUBTYPE(MARCUL, 2)] = Polygon(QImage(":/marine/shellfish-farm-line.png"));
153+
_polygons[SUBTYPE(MARCUL, 3)] = Polygon(QImage(":/marine/fishing-farm-line.png"));
152154
_polygons[TYPE(BERTHS)] = Polygon(Qt::NoBrush, QPen(QColor(0xeb, 0x49, 0xeb),
153155
1, Qt::DashLine));
154156
_polygons[TYPE(I_BERTHS)] = _polygons[TYPE(BERTHS)];
@@ -189,7 +191,8 @@ void Style::polygonStyle()
189191
<< SUBTYPE(RESARE, 23) << SUBTYPE(I_RESARE, 23) << SUBTYPE(RESARE, 25)
190192
<< SUBTYPE(I_RESARE, 25) << SUBTYPE(RESARE, 26) << SUBTYPE(I_RESARE, 26)
191193
<< TYPE(CBLARE) << TYPE(PIPARE) << TYPE(PRCARE) << TYPE(I_TRNBSN)
192-
<< SUBTYPE(MARKUL, 0) << SUBTYPE(MARKUL, 3) << TYPE(CONZNE);
194+
<< SUBTYPE(MARCUL, 0) << SUBTYPE(MARCUL, 1) << SUBTYPE(MARCUL, 2)
195+
<< SUBTYPE(MARCUL, 3) << TYPE(CONZNE);
193196
}
194197

195198
void Style::lineStyle(qreal ratio)
@@ -402,8 +405,8 @@ void Style::pointStyle(qreal ratio)
402405
_points[TYPE(LNDARE)].setHaloColor(QColor());
403406
_points[TYPE(LNDRGN)].setHaloColor(QColor());
404407
_points[TYPE(RADRFL)] = Point(QImage(":/marine/radar-reflector.png"));
405-
_points[SUBTYPE(MARKUL, 0)] = Point(QImage(":/marine/fishing-farm.png"));
406-
_points[SUBTYPE(MARKUL, 3)] = Point(QImage(":/marine/fishing-farm.png"));
408+
_points[SUBTYPE(MARCUL, 0)] = Point(QImage(":/marine/fishing-farm.png"));
409+
_points[SUBTYPE(MARCUL, 3)] = Point(QImage(":/marine/fishing-farm.png"));
407410

408411
_points[SUBTYPE(I_BERTHS, 6)] = Point(QImage(":/marine/fleeting-area.png"),
409412
Small);

0 commit comments

Comments
 (0)