Changeset 29380 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/GetImageryOffsetAction.java
- Timestamp:
- 2013-03-21T07:28:34+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/GetImageryOffsetAction.java
r29377 r29380 61 61 return; 62 62 } 63 final ImageryOffsetBase offset = new OffsetDialog(offsets).showDialog(); 64 if( offset != null ) { 65 if( offset instanceof ImageryOffset ) { 66 ImageryOffsetTools.applyLayerOffset(layer, (ImageryOffset)offset); 67 Main.map.repaint(); 68 } else if( offset instanceof CalibrationObject ) { 69 CalibrationLayer clayer = new CalibrationLayer((CalibrationObject)offset); 70 Main.map.mapView.addLayer(clayer); 71 clayer.panToCenter(); 72 if( !Main.pref.getBoolean("iodb.calibration.message", false) ) { 73 JOptionPane.showMessageDialog(Main.parent, 74 tr("A layer has been added with a calibration geometry. Hide data layers,\n" 75 + "find the corresponding feature on the imagery layer and move it accordingly."), 76 ImageryOffsetTools.DIALOG_TITLE, JOptionPane.INFORMATION_MESSAGE); 77 Main.pref.put("iodb.calibration.message", true); 78 } 79 } 80 } 63 OffsetDialog offsetDialog = new OffsetDialog(offsets); 64 if( offsetDialog.showDialog() != null ) 65 offsetDialog.applyOffset(); 81 66 } 82 67 … … 92 77 int radius = Main.pref.getInteger("iodb.radius", -1); 93 78 if( radius > 0 ) 94 query = query + " ?radius=" + radius;79 query = query + "&radius=" + radius; 95 80 setQuery(query); 96 81 } catch( UnsupportedEncodingException e ) {
Note:
See TracChangeset
for help on using the changeset viewer.
