Changeset 17340 in osm for applications
- Timestamp:
- 2009-08-29T22:10:57+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin/src/wmsplugin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Grabber.java
r16290 r17340 10 10 import org.openstreetmap.josm.Main; 11 11 import org.openstreetmap.josm.data.ProjectionBounds; 12 import org.openstreetmap.josm.data.coor.EastNorth;13 12 import org.openstreetmap.josm.data.projection.Projection; 14 13 import org.openstreetmap.josm.gui.MapView; … … 27 26 { 28 27 this.b = b; 29 this.proj = Main. main.proj;28 this.proj = Main.proj; 30 29 this.pixelPerDegree = layer.pixelPerDegree; 31 30 this.image = image; -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java
r17334 r17340 77 77 protected URL getURL(double w, double s,double e,double n, 78 78 int wi, int ht) throws MalformedURLException { 79 String proj = Main.proj.toCode();79 String myProj = Main.proj.toCode(); 80 80 if(Main.proj instanceof Mercator) // don't use mercator code directly 81 81 { 82 82 LatLon sw = Main.proj.eastNorth2latlon(new EastNorth(w, s)); 83 83 LatLon ne = Main.proj.eastNorth2latlon(new EastNorth(e, n)); 84 proj = "EPSG:4326";84 myProj = "EPSG:4326"; 85 85 s = sw.lat(); 86 86 w = sw.lon(); … … 96 96 97 97 if (urlWithPatterns) { 98 str = str.replaceAll("\\{proj\\}", proj)98 str = str.replaceAll("\\{proj\\}", myProj) 99 99 .replaceAll("\\{bbox\\}", bbox) 100 100 .replaceAll("\\{width\\}", String.valueOf(wi)) -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java
r17339 r17340 1 1 package wmsplugin; 2 2 3 import org.openstreetmap.josm.io.CacheFiles; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 4 5 … … 257 258 // Delete small files, because they're probably blank tiles. 258 259 // See https://josm.openstreetmap.de/ticket/2307 259 WMSPlugin.cache.customCleanUp( WMSPlugin.cache.CLEAN_SMALL_FILES, 2048);260 WMSPlugin.cache.customCleanUp(CacheFiles.CLEAN_SMALL_FILES, 2048); 260 261 261 262 for (int x = 0; x < dax; ++x) { -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java
r16781 r17340 49 49 public WMSPlugin() { 50 50 refreshMenu(); 51 cache.setExpire( cache.EXPIRE_MONTHLY, false);51 cache.setExpire(CacheFiles.EXPIRE_MONTHLY, false); 52 52 cache.setMaxSize(70, false); 53 53 } -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPreferenceEditor.java
r16781 r17340 2 2 3 3 import java.awt.FlowLayout; 4 import javax.swing.JCheckBox;5 import javax.swing.JSpinner;6 import javax.swing.SpinnerNumberModel;7 4 import org.openstreetmap.josm.Main; 8 5 import static org.openstreetmap.josm.tools.I18n.tr; … … 56 53 @Override 57 54 public boolean isCellEditable(int row,int column){return false;} 58 }; ;55 }; 59 56 JScrollPane scrolldef = new JScrollPane(listdef); 60 57 p.add(scrolldef, GBC.eol().insets(0,5,0,0).fill(GBC.BOTH));
Note:
See TracChangeset
for help on using the changeset viewer.