Ignore:
Timestamp:
2012-03-06T21:32:44+01:00 (12 years ago)
Author:
zverik
Message:

Something works :)

File:
1 edited

Legend:

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

    r27986 r28008  
    22
    33import java.awt.event.ActionEvent;
     4import java.util.HashMap;
     5import java.util.Map;
    46import org.openstreetmap.josm.Main;
    57import org.openstreetmap.josm.actions.JosmAction;
     
    2022
    2123    public void actionPerformed(ActionEvent e) {
     24        // todo: check that there is an imagery
     25        // and that it is moved
    2226        Projection proj = Main.map.mapView.getProjection();
    2327        LatLon center = proj.eastNorth2latlon(Main.map.mapView.getCenter());
     
    2731        // todo: upload object info to server
    2832    }
     33   
     34    private static void upload( ImageryOffsetBase offset ) {
     35        String base = Main.pref.get("iodb.server.url", "http://offsets.textual.ru/");
     36        Map<String, String> params = new HashMap<String, String>();
     37        offset.putServerParams(params);
     38        // todo
     39    }
    2940}
Note: See TracChangeset for help on using the changeset viewer.