1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

MORFAC & CRANES rendering

This commit is contained in:
Martin Tůma 2022-11-19 23:55:17 +01:00
parent 0c5076eaaf
commit f47a5e50ad
4 changed files with 8 additions and 3 deletions

View File

@ -174,6 +174,7 @@
<file alias="ferry-line.png">icons/map/marine/ferry-line.png</file>
<file alias="dw-route-line.png">icons/map/marine/dw-route-line.png</file>
<file alias="fence-line.png">icons/map/marine/fence-line.png</file>
<file alias="crane.png">icons/map/marine/crane.png</file>
</qresource>
<!-- Mapsforge rendertheme -->

BIN
icons/map/marine/crane.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 B

View File

@ -23,6 +23,7 @@
#define CBLSUB 22
#define CANALS 23
#define COALNE 30
#define CRANES 35
#define DAMCON 38
#define DWRTPT 41
#define DEPARE 42

View File

@ -66,6 +66,8 @@ void Style::defaultPolygonStyle()
_polygons[TYPE(FLODOC)] = Polygon(QBrush("#333333"), QPen(QColor("#000000"),
1));
_polygons[TYPE(DWRTPT)] = Polygon(QImage(":/marine/dw-route-line"));
_polygons[TYPE(MORFAC)] = Polygon(QBrush("#e8e064"), QPen(QColor("#000000"),
2));
_drawOrder
<< TYPE(M_COVR) << TYPE(LNDARE) << SUBTYPE(DEPARE, 0)
@ -75,9 +77,9 @@ void Style::defaultPolygonStyle()
<< TYPE(RIVERS) << TYPE(DRGARE) << TYPE(FAIRWY) << TYPE(BUAARE)
<< TYPE(BUISGL) << TYPE(AIRARE) << TYPE(BRIDGE) << TYPE(SLCONS)
<< TYPE(PONTON) << TYPE(FLODOC) << TYPE(DRYDOC) << TYPE(DAMCON)
<< TYPE(PYLONS) << TYPE(DMPGRD) << TYPE(TSEZNE) << TYPE(OBSTRN)
<< TYPE(DWRTPT) << SUBTYPE(ACHARE, 1) << SUBTYPE(RESARE, 9)
<< SUBTYPE(RESARE, 2) << TYPE(PRCARE);
<< TYPE(PYLONS) << TYPE(MORFAC) << TYPE(DMPGRD) << TYPE(TSEZNE)
<< TYPE(OBSTRN) << TYPE(DWRTPT) << SUBTYPE(ACHARE, 1)
<< SUBTYPE(RESARE, 9) << SUBTYPE(RESARE, 2) << TYPE(PRCARE);
}
void Style::defaultLineStyle()
@ -166,6 +168,7 @@ void Style::defaultPointStyle()
_points[SUBTYPE(MORFAC, 5)] = Point(QImage(":/marine/pile.png"), Small);
_points[SUBTYPE(MORFAC, 7)] = Point(QImage(":/marine/mooring-buoy.png"),
Small);
_points[TYPE(CRANES)] = Point(QImage(":/marine/crane.png"));
}
Style::Style()