MapNode mark = nodes.get(nodes.size() - 1);
infoField.setText("Marker " + mark.getName() + ": Lat "
+ f1.format(mark.getLat()) + "; Lon "
+ f1.format(mark.getLon()));
} else if (event.getType() == MapEvent.Type.TRACK_MODIFIED) {
Track track = map.getTrack(event.getObjId());
if (track != null) {
List<MapNode> nodes = track.getNodes();
DecimalFormat f1 = new DecimalFormat("#0.00");
double km = Position.getTrackLengthKM(nodes);
String info = track.getName() + ": Total Length " + f1.format(km)
+ " km";
if (nodes.size() > 1) {
DecimalFormat f2 = new DecimalFormat("#000");
MapNode m1 = nodes.get(nodes.size() - 2);
MapNode m2 = nodes.get(nodes.size() - 1);