diff --git a/src/map/IMG/style.cpp b/src/map/IMG/style.cpp index 0c4de37e..b4dfb8ec 100644 --- a/src/map/IMG/style.cpp +++ b/src/map/IMG/style.cpp @@ -990,12 +990,6 @@ bool Style::isMilitaryArea(quint32 type) return (type == TYPE(0x04)); } -bool Style::isInfrastructureArea(quint32 type) -{ - return ((type >= TYPE(0x07) && type <= TYPE(0xc)) || type == TYPE(0x13) - || type == TYPE(0x1a) || type == TYPE(0x19)); -} - bool Style::isSpot(quint32 type) { return (type == TYPE(0x62) || type == TYPE(0x63)); @@ -1011,6 +1005,11 @@ bool Style::isMajorRoad(quint32 type) return (type <= TYPE(0x04)); } +bool Style::isWaterAreaPOI(quint32 type) +{ + return (type == 0x6603); +} + Style::POIClass Style::poiClass(quint32 type) { if ((type >= 0x2a00 && type < 0x2b00) || type == 0x2c0a || type == 0x2d02) diff --git a/src/map/IMG/style.h b/src/map/IMG/style.h index dc0acfce..68fedb1b 100644 --- a/src/map/IMG/style.h +++ b/src/map/IMG/style.h @@ -112,7 +112,7 @@ public: static bool isMajorRoad(quint32 type); static bool isWaterArea(quint32 type); static bool isMilitaryArea(quint32 type); - static bool isInfrastructureArea(quint32 type); + static bool isWaterAreaPOI(quint32 type); static POIClass poiClass(quint32 type); private: diff --git a/src/map/imgmap.cpp b/src/map/imgmap.cpp index 20af7e33..c0211820 100644 --- a/src/map/imgmap.cpp +++ b/src/map/imgmap.cpp @@ -391,8 +391,7 @@ void IMGMap::processPolygons(QList &polygons, if (poly.label.text().isEmpty()) continue; - if (Style::isWaterArea(poly.type) || Style::isMilitaryArea(poly.type) - || Style::isInfrastructureArea(poly.type)) { + if (Style::isWaterArea(poly.type) || Style::isMilitaryArea(poly.type)) { const Style::Polygon &style = _img.style()->polygon(poly.type); TextPointItem *item = new TextPointItem( centroid(poly.points).toPoint(), &poly.label.text(), @@ -526,7 +525,8 @@ void IMGMap::processPoints(QList &points, IMG::Point &point = points[i]; const Style::Point &style = _img.style()->point(point.type); - if (point.poi && _zoom < minPOIZoom(Style::poiClass(point.type))) + if (point.poi && (_zoom < minPOIZoom(Style::poiClass(point.type)) + || Style::isWaterAreaPOI(point.type))) continue; const QString *label = point.label.text().isEmpty()