This commit is contained in:
Victor Shcherb 2018-06-03 15:22:17 +02:00
parent c2f41a5370
commit cd289316dd

View file

@ -758,20 +758,20 @@ public class OsmEditsFragment extends OsmAndListFragment implements SendPoiDialo
if (point.getGroup() == Group.POI) { if (point.getGroup() == Group.POI) {
OpenstreetmapPoint p = (OpenstreetmapPoint) point; OpenstreetmapPoint p = (OpenstreetmapPoint) point;
WptPt wpt = new WptPt(); WptPt wpt = new WptPt();
wpt.name = "node" + " " + OsmPoint.stringAction.get(p.getAction()); wpt.name = getTagsString(p);
wpt.lat = p.getLatitude(); wpt.lat = p.getLatitude();
wpt.lon = p.getLongitude(); wpt.lon = p.getLongitude();
wpt.desc = "id: " + String.valueOf(p.getId()); wpt.desc = "id: " + String.valueOf(p.getId()) +
wpt.comment = getTagsString(p); " node" + " " + OsmPoint.stringAction.get(p.getAction());
gpx.addPoint(wpt); gpx.addPoint(wpt);
} else if (point.getGroup() == Group.BUG) { } else if (point.getGroup() == Group.BUG) {
OsmNotesPoint p = (OsmNotesPoint) point; OsmNotesPoint p = (OsmNotesPoint) point;
WptPt wpt = new WptPt(); WptPt wpt = new WptPt();
wpt.name = "note" + " " + OsmPoint.stringAction.get(p.getAction()); wpt.name = p.getText();
wpt.lat = p.getLatitude(); wpt.lat = p.getLatitude();
wpt.lon = p.getLongitude(); wpt.lon = p.getLongitude();
wpt.desc = "id: " + String.valueOf(p.getId()); wpt.desc = "id: " + String.valueOf(p.getId()) +
wpt.comment = p.getText(); " note" + " " + OsmPoint.stringAction.get(p.getAction()) ;
gpx.addPoint(wpt); gpx.addPoint(wpt);
} }
} }