Very small patch: Only show GPX nodes at the double zoom than normal nodes.
Background: My GPX nodes are only one second apart. This leads to really
near GPX nodes, and it just doesn't make sense to display overlapping
nodes. So I've set the minimum zoom level for GPX nodes to the double
value of that for other nodes. That means that GPX nodes only appear as
small grey rectangles if you zoom further down. The reg/green segments
line is not affected, nor is the photo marker.
This may or may not be useful to anyone else.
--
Yves Goergen "LonelyPixel" <[email protected]>
Visit my web laboratory at http://beta.unclassified.de
--- merkaartor\PaintStyle\EditPaintStyle.cpp.orig Fri Jan 02 23:21:07 2009
+++ merkaartor\PaintStyle\EditPaintStyle.cpp Mon Jan 05 16:31:11 2009
@@ -204,6 +204,9 @@
else if (!Pt->hasEditPainter()) {
if (p->isTrackPointVisible || (Pt->lastUpdated() ==
MapFeature::Log && !p->isTrackSegmentVisible)) {
bool Draw = p->theProjection.pixelPerM() > 1;
+ // Special threshold for GPX nodes: Only show for
double zoom than normal nodes
+ if (Pt->layer()->isTrack())
+ Draw = p->theProjection.pixelPerM() > 2;
if (!Draw && !Pt->sizeParents() &&
(p->theProjection.pixelPerM() > LOCALZOOM) )
Draw = true;
if (Pt->lastUpdated() == MapFeature::Log &&
!p->isTrackSegmentVisible)
_______________________________________________
Merkaartor mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/merkaartor