Changeset 1566 in osm
- Timestamp:
- 2006-11-12T01:16:08+01:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/josm/plugins/landsat/src/landsat/LandsatPlugin.java
r1564 r1566 11 11 public class LandsatPlugin extends Plugin { 12 12 13 DownloadLandsatTask task; 14 LandsatLayer landsatLayer; 13 DownloadWMSTask task, npeTask; 14 WMSLayer landsatLayer; 15 OSGBLayer npeLayer; 15 16 16 17 public LandsatPlugin() { 17 landsatLayer = new LandsatLayer18 landsatLayer = new WMSLayer 18 19 ("http://onearth.jpl.nasa.gov/wms.cgi?request=GetMap&"+ 19 20 "layers=global_mosaic&styles=&srs=EPSG:4326&"+ 20 21 "format=image/jpeg"); 21 task = new DownloadLandsatTask(landsatLayer); 22 npeLayer = new OSGBLayer 23 ("http://nick.dev.openstreetmap.org/openpaths/"+ 24 "freemap.php?layers=npe&"); 25 task = new DownloadWMSTask(landsatLayer, "landsat", 26 "Landsat images"); 27 npeTask = new DownloadWMSTask(npeLayer, "npe", 28 "New Popular Edition maps - " + 29 "see npemap.org.uk for conditions of use"); 22 30 task.setEnabled(false); 31 npeTask.setEnabled(false); 23 32 Main.main.menu.download.downloadTasks.add(task); 24 33 Main.main.menu.download.downloadTasks.add(npeTask); 25 34 } 26 35 … … 28 37 if(oldFrame==null && newFrame!=null) { 29 38 task.setEnabled(true); 39 npeTask.setEnabled(true); 30 40 31 41 /* re. bug report (Andy Robinson) 08/11/06... … … 37 47 Main.map.toolBarActions.addSeparator(); 38 48 IconToggleButton button = new IconToggleButton 39 (new LandsatAdjustAction(Main.map));49 (new WMSAdjustAction(Main.map)); 40 50 Main.map.toolBarActions.add(button); 41 51 Main.map.toolGroup.add(button); 42 52 } else if (oldFrame!=null && newFrame==null ) { 43 53 task.setEnabled(false); 54 npeTask.setEnabled(false); 44 55 } 45 56 }
Note:
See TracChangeset
for help on using the changeset viewer.