Commit bb100344 authored by Mohammed Nafees's avatar Mohammed Nafees

Fix debug level mode to not completely hide the base layers

parent d6104d62
......@@ -254,16 +254,14 @@ bool GeometryLayer::render(GeoPainter *painter, ViewportParams *viewport,
for (auto item: layerItems) {
if (d->m_levelTagDebugModeEnabled) {
if (const auto placemark = geodata_cast<GeoDataPlacemark>(item->feature())) {
if (!placemark->hasOsmData()) {
continue;
}
QHash<QString, QString>::const_iterator tagIter = placemark->osmData().findTag(QStringLiteral("level"));
if (tagIter == placemark->osmData().tagsEnd()) {
continue;
}
const int val = tagIter.value().toInt();
if (val != d->m_levelToDebug) {
continue;
if (placemark->hasOsmData()) {
QHash<QString, QString>::const_iterator tagIter = placemark->osmData().findTag(QStringLiteral("level"));
if (tagIter != placemark->osmData().tagsEnd()) {
const int val = tagIter.value().toInt();
if (val != d->m_levelToDebug) {
continue;
}
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment