Changeset 32463 in osm for applications/editors/josm/plugins/openvisible/src
- Timestamp:
- 2016-06-30T19:57:15+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java
r29222 r32463 109 109 DataSet dataSet = OsmReader.parseDataSet(new FileInputStream(file), NullProgressMonitor.INSTANCE); 110 110 OsmDataLayer layer = new OsmDataLayer(dataSet, fn, file); 111 Main. main.addLayer(layer);111 Main.getLayerManager().addLayer(layer); 112 112 } 113 113 else … … 131 131 r.getGpxData().storageFile = file; 132 132 GpxLayer gpxLayer = new GpxLayer(r.getGpxData(), fn); 133 Main. main.addLayer(gpxLayer);134 Main. main.addLayer(new MarkerLayer(r.getGpxData(), tr("Markers from {0}", fn), file, gpxLayer));133 Main.getLayerManager().addLayer(gpxLayer); 134 Main.getLayerManager().addLayer(new MarkerLayer(r.getGpxData(), tr("Markers from {0}", fn), file, gpxLayer)); 135 135 136 136 } else {
Note:
See TracChangeset
for help on using the changeset viewer.