Ignore:
Timestamp:
2013-03-21T07:28:34+01:00 (13 years ago)
Author:
zverik
Message:

updated alpha of iodb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/GetImageryOffsetAction.java

    r29377 r29380  
    6161            return;
    6262        }
    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();
    8166    }
    8267
     
    9277                int radius = Main.pref.getInteger("iodb.radius", -1);
    9378                if( radius > 0 )
    94                     query = query + "?radius=" + radius;
     79                    query = query + "&radius=" + radius;
    9580                setQuery(query);
    9681            } catch( UnsupportedEncodingException e ) {
Note: See TracChangeset for help on using the changeset viewer.