Changeset 1638 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-06-06T13:47:56+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r1600 r1638 19 19 import java.text.DateFormat; 20 20 import java.text.DecimalFormat; 21 import java.io.InputStreamReader; 22 import java.net.URL; 23 import java.net.URLConnection; 24 import java.net.UnknownHostException; 21 import java.util.ArrayList; 25 22 import java.util.Arrays; 26 import java.util.ArrayList;27 23 import java.util.Collection; 28 24 import java.util.Collections; 29 25 import java.util.Comparator; 30 import java.util.Iterator;31 26 import java.util.Date; 32 27 import java.util.LinkedList; … … 68 63 import org.openstreetmap.josm.gui.layer.markerlayer.AudioMarker; 69 64 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 65 import org.openstreetmap.josm.tools.AudioUtil; 70 66 import org.openstreetmap.josm.tools.DateUtils; 71 67 import org.openstreetmap.josm.tools.DontShowAgainInfo; … … 73 69 import org.openstreetmap.josm.tools.ImageProvider; 74 70 import org.openstreetmap.josm.tools.UrlLabel; 75 import org.openstreetmap.josm.tools.AudioUtil;76 71 77 72 public class GpxLayer extends Layer { … … 306 301 307 302 if (data.attr.containsKey("name")) 308 info.append(tr("Name: {0}", data.attr.get( data.META_NAME))).append("<br>");303 info.append(tr("Name: {0}", data.attr.get(GpxData.META_NAME))).append("<br>"); 309 304 310 305 if (data.attr.containsKey("desc")) 311 info.append(tr("Description: {0}", data.attr.get( data.META_DESC))).append("<br>");306 info.append(tr("Description: {0}", data.attr.get(GpxData.META_DESC))).append("<br>"); 312 307 313 308 if(data.tracks.size() > 0){ … … 469 464 if(trkPnt.attr.get("hdop") != null) { 470 465 float hdop = ((Float)trkPnt.attr.get("hdop")).floatValue(); 466 if (hdop < 0) { 467 hdop = 0; 468 } 471 469 int hdoplvl = Math.round(hdop * 25); 472 470 // High hdop is bad, but high values in colors are green.
Note:
See TracChangeset
for help on using the changeset viewer.