Ignore:
Timestamp:
2015-11-08T10:26:14+01:00 (9 years ago)
Author:
malcolmh
Message:

[seachartedit] update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachartedit/src/panels/PanelS57.java

    r31717 r31736  
    186186                OsmDataLayer layer = new OsmDataLayer(data, "S-57 Import", null);
    187187                Main.map.mapView.addLayer(layer);
    188 //              Main.map.mapView.zoomTo(new Bounds(bounds.minlat, bounds.minlon, bounds.maxlat, bounds.maxlon));
     188                Main.map.mapView.zoomTo(new Bounds(Math.toDegrees(map.bounds.minlat), Math.toDegrees(map.bounds.minlon), Math.toDegrees(map.bounds.maxlat), Math.toDegrees(map.bounds.maxlon)));
    189189                PanelMain.setStatus("Import done", Color.green);
    190190        }
     
    199199                        Snode snode = map.nodes.get(feature.geom.elems.get(0).id);
    200200                        if (snode.flg == S57map.Nflag.DPTH) {
    201                                 keys.put("seamark:sounding:depth", ((Double)((Dnode)snode).val).toString());
     201                                keys.put("seamark:sounding:depth", ((Double)((Snode)snode).val).toString());
    202202                        }
    203203                }
Note: See TracChangeset for help on using the changeset viewer.