Commit 0d28f009 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Draw zoom level and popularity in debug mode. Both are sort key.

parent e94d8fa7
......@@ -233,8 +233,17 @@ void PlacemarkLayer::renderDebug(GeoPainter *painter, ViewportParams *viewport,
for (auto placemark: placemarks) {
QString const popularity = QString::number(placemark->placemark()->popularity());
painter->drawText(placemark->symbolRect().bottomLeft(), popularity);
auto const height = painter->fontMetrics().height();
for (auto placemark: placemarks) {
QPoint position = placemark->symbolRect().bottomLeft().toPoint() + QPoint(0, qRound(0.8 * height));
auto const popularity = placemark->placemark()->popularity();
painter->drawText(position, QStringLiteral("p: %1").arg(popularity));
position -= QPoint(0, placemark->symbolRect().height() + height);
auto const zoomLevel = placemark->placemark()->zoomLevel();
painter->drawText(position, QStringLiteral("z: %1").arg(zoomLevel));
Supports Markdown
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