- Timestamp:
- 2007-10-14T20:29:54+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java
r383 r384 5 5 import static org.openstreetmap.josm.tools.I18n.trn; 6 6 7 import java.text.DecimalFormat; 8 import java.text.NumberFormat; 7 9 import java.util.HashSet; 8 10 import java.util.Set; … … 38 40 public Icon icon; 39 41 42 /** 43 * For formatting lat/lon 44 */ 45 public static NumberFormat latLonFormat = new DecimalFormat("###0.0000000"); 40 46 41 47 /** … … 46 52 name = n.get("name"); 47 53 if (name == null) 48 name = (n.id==0?"":""+n.id)+" ("+ n.coor.lat()+","+n.coor.lon()+")";54 name = (n.id==0?"":""+n.id)+" ("+latLonFormat.format(n.coor.lat())+", "+latLonFormat.format(n.coor.lon())+")"; 49 55 addId(n); 50 56 icon = ImageProvider.get("data", "node");
Note:
See TracChangeset
for help on using the changeset viewer.