Hi! Apparantly, at least maemo mapper can create descriptions on trackpoints without marking it as waypoints.
I would like the description shown in the info box as well as the trackpoint shown a bit different. After reading the code a bit, I figured out that only waypoints showed descriptions and was marked special, so I just duplicated it to just check for descriptions. --- a/Map/TrackPoint.cpp +++ b/Map/TrackPoint.cpp @@ -349,12 +349,12 @@ if (speed()) D += "<i>"+QApplication::translate("MapFeature", "speed")+": </i>" + QString::number(speed(), 'f', 4) + "<br/>"; + if ((i = findKey("_description_")) < tagSize()) + D += "<i>"+QApplication::translate("MapFeature", "description")+": </i>" + tagValue(i) + "<br/>"; + if ((i = findKey("_waypoint_")) < tagSize()) { D += "<p><b>"+QApplication::translate("MapFeature", "Waypoint")+"</b><br/>"; - if ((i = findKey("_description_")) < tagSize()) - D += "<i>"+QApplication::translate("MapFeature", "description")+": </i>" + tagValue(i) + "<br/>"; - if ((i = findKey("_comment_")) < tagSize()) D += "<i>"+QApplication::translate("MapFeature", "comment")+": </i>" + tagValue(i) + "<br/>"; } --- a/PaintStyle/EditPaintStyle.cpp +++ b/PaintStyle/EditPaintStyle.cpp @@ -159,7 +159,7 @@ { QPointF P(p->theProjection.project(Pt->position())); - if (Pt->findKey("_waypoint_") != Pt->tagSize()) { + if (Pt->findKey("_waypoint_") != Pt->tagSize() || Pt->findKey("_description_") < Pt->tagSize()) { QRectF R(P-QPointF(4,4),QSize(8,8)); p->thePainter.fillRect(R,QColor(255,0,0,128)); } And I noticed one thing, in the TrackPaint.cpp, there was comparision of < tagSize(), where the EditPaintStyle uses != tagSize(). I don't know if there is any deeper meaning or ... but anyway. /Sune _______________________________________________ Merkaartor mailing list Merkaartor@openstreetmap.org http://lists.openstreetmap.org/listinfo/merkaartor