Changeset 16948 in osm for applications/editors/josm/plugins/surveyor/src/at
- Timestamp:
- 2009-08-10T00:05:42+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetWaypointAction.java
r13497 r16948 59 59 if(source instanceof JToggleButton) { 60 60 if(((JToggleButton)source).isSelected()) { 61 markerTitle = markerTitle + " " + tr("start");61 markerTitle = tr("{0} start", markerTitle); 62 62 } else { 63 markerTitle = markerTitle + " " + tr("end");63 markerTitle = tr("{0} end", markerTitle); 64 64 } 65 65 } … … 84 84 WayPoint waypoint = new WayPoint(event.getCoordinates()); 85 85 waypoint.attr.put("name", markerText); 86 waypoint.attr.put("sym", iconName); 86 if(iconName != null) 87 waypoint.attr.put("sym", iconName); 87 88 synchronized(LiveGpsLock.class) { 88 89 //layer.data.add(new Marker(event.getCoordinates(), markerText, iconName)); 89 layer.data.add(new Marker(event.getCoordinates(), markerText, iconName, null, -1.0, 0.0));90 layer.data.add(new Marker(event.getCoordinates(), markerText, iconName, null, -1.0, 0.0)); 90 91 if(gpsLayer != null) { 91 92 gpsLayer.data.waypoints.add(waypoint); … … 107 108 // not found, add a new one 108 109 //markerLayer = new MarkerLayer(new GpxData(), MARKER_LAYER_NAME, null); 109 markerLayer = new MarkerLayer(new GpxData(), MARKER_LAYER_NAME, null, null);110 markerLayer = new MarkerLayer(new GpxData(), MARKER_LAYER_NAME, null, null); 110 111 Main.main.addLayer(markerLayer); 111 112 }
Note:
See TracChangeset
for help on using the changeset viewer.