diff --git a/gpxsee.qrc b/gpxsee.qrc index fd883090..1c08bde5 100644 --- a/gpxsee.qrc +++ b/gpxsee.qrc @@ -43,6 +43,7 @@ icons/map/POI/casino-11.svg icons/map/POI/castle-11.svg icons/map/POI/cemetery-11.svg + icons/map/POI/charging-station-11.svg icons/map/POI/cinema-11.svg icons/map/POI/clothing-store-11.svg icons/map/POI/college-11.svg diff --git a/icons/map/POI/charging-station-11.svg b/icons/map/POI/charging-station-11.svg new file mode 100644 index 00000000..9727f704 --- /dev/null +++ b/icons/map/POI/charging-station-11.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/map/ENC/attributes.h b/src/map/ENC/attributes.h index 167a0ad5..aec2d38a 100644 --- a/src/map/ENC/attributes.h +++ b/src/map/ENC/attributes.h @@ -43,6 +43,7 @@ #define I_RDOCAL 17017 #define I_WTWDIS 17064 #define I_CATBRT 17066 +#define I_CATBUN 17067 #define I_HUNITS 17103 #endif // ENC_ATTRIBUTES_H diff --git a/src/map/ENC/mapdata.cpp b/src/map/ENC/mapdata.cpp index c4d2e3b2..9e6385d0 100644 --- a/src/map/ENC/mapdata.cpp +++ b/src/map/ENC/mapdata.cpp @@ -81,9 +81,10 @@ static QMap orderMapInit() map.insert(TYPE(SLCONS), 40); map.insert(TYPE(LNDMRK), 41); map.insert(TYPE(SILTNK), 42); - map.insert(TYPE(LNDELV), 43); - map.insert(TYPE(SMCFAC), 44); - map.insert(TYPE(BUISGL), 45); + map.insert(TYPE(I_BUNSTA), 43); + map.insert(TYPE(LNDELV), 44); + map.insert(TYPE(SMCFAC), 45); + map.insert(TYPE(BUISGL), 46); map.insert(TYPE(I_DISMAR), 0xFFFFFFFE); map.insert(TYPE(SOUNDG), 0xFFFFFFFF); @@ -373,6 +374,8 @@ MapData::Point::Point(uint type, const Coordinates &c, const Attributes &attr, subtype = I_CATACH; else if (type == MARKUL) subtype = CATMFA; + else if (type == I_BUNSTA) + subtype = I_CATBUN; QList list(_attr.value(subtype).split(',')); std::sort(list.begin(), list.end()); diff --git a/src/map/ENC/objects.h b/src/map/ENC/objects.h index 8f1aa498..2fa3568c 100644 --- a/src/map/ENC/objects.h +++ b/src/map/ENC/objects.h @@ -122,6 +122,7 @@ #define I_GATCON 17031 #define I_SLCONS 17032 #define I_WTWAXS 17051 +#define I_BUNSTA 17054 #define I_TERMNL 17064 #define I_TRNBSN 17065 #define I_WTWGAG 17067 diff --git a/src/map/ENC/style.cpp b/src/map/ENC/style.cpp index 8a9fe2f2..4fc6323a 100644 --- a/src/map/ENC/style.cpp +++ b/src/map/ENC/style.cpp @@ -435,6 +435,13 @@ void Style::pointStyle(qreal ratio) _points[SUBTYPE(I_RESARE, 22)] = _points[SUBTYPE(RESARE, 22)]; _points[SUBTYPE(I_RESARE, 23)] = _points[SUBTYPE(RESARE, 23)]; + _points[SUBTYPE(I_BUNSTA, 1)] = Point(svg2img(":/POI/fuel-11.svg", ratio), + Small); + _points[SUBTYPE(I_BUNSTA, 2)] = Point(svg2img(":/POI/drinking-water-11.svg", + ratio), Small); + _points[SUBTYPE(I_BUNSTA, 4)] = Point(svg2img(":/POI/charging-station-11.svg", + ratio), Small); + _points[SUBTYPE(SMCFAC, 7)] = Point(svg2img(":/POI/restaurant-11.svg", ratio), Small); _points[SUBTYPE(SMCFAC, 11)] = Point(svg2img(":/POI/pharmacy-11.svg", @@ -443,6 +450,8 @@ void Style::pointStyle(qreal ratio) ratio), Small); _points[SUBTYPE(SMCFAC, 13)] = Point(svg2img(":/POI/fuel-11.svg", ratio), Small); + _points[SUBTYPE(SMCFAC, 14)] = Point(svg2img(":/POI/charging-station-11.svg", + ratio), Small); _points[SUBTYPE(SMCFAC, 18)] = Point(svg2img(":/POI/toilet-11.svg", ratio), Small); _points[SUBTYPE(SMCFAC, 20)] = Point(svg2img(":/POI/telephone-11.svg",