Changeset 31973 in osm
- Timestamp:
- 2016-01-11T23:05:18+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryDownloadAction.java
r31840 r31973 42 42 @Override 43 43 public void actionPerformed(ActionEvent arg0) { 44 MapillaryLayer.getInstance(); 45 if (Main.map.mapView.getActiveLayer() == MapillaryLayer.getInstance()) { 46 Main.map.mapView.setActiveLayer(Main.map.mapView.getEditLayer()); 47 } else { 48 Main.map.mapView.setActiveLayer(MapillaryLayer.getInstance()); 44 if (!MapillaryLayer.hasInstance()) { 45 // A new mapillary layer is created, so the active layer is not changed 46 MapillaryLayer.getInstance(); 47 return; 49 48 } 49 // Successive calls to this action toggle the active layer between the OSM data layer and the mapillary layer 50 Main.map.mapView.setActiveLayer( 51 Main.map.mapView.getActiveLayer() == MapillaryLayer.getInstance() 52 ? Main.map.mapView.getEditLayer() 53 : MapillaryLayer.getInstance() 54 ); 50 55 } 51 56 }
Note:
See TracChangeset
for help on using the changeset viewer.