Changeset 24567 in osm for applications/editors/josm
- Timestamp:
- 2010-12-03T23:13:57+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery/ImageryPreferenceEditor.java
r24550 r24567 454 454 info.setURL((String)o); 455 455 case 2: 456 if(info.imageryType == ImageryType.WMS) 457 info.pixelPerDegree = Double.parseDouble((String) o); 458 else 459 info.maxZoom = Integer.parseInt((String) o); 456 info.pixelPerDegree = 0; 457 info.maxZoom = 0; 458 try { 459 if(info.imageryType == ImageryType.WMS) 460 info.pixelPerDegree = Double.parseDouble((String) o); 461 else 462 info.maxZoom = Integer.parseInt((String) o); 463 } catch (NumberFormatException e) { 464 } 460 465 } 461 466 } -
applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery/tms/TMSLayer.java
r24555 r24567 53 53 import org.openstreetmap.josm.gui.layer.Layer; 54 54 import org.openstreetmap.josm.plugins.imagery.ImageryInfo; 55 import org.openstreetmap.josm.plugins.imagery.ImageryInfo.ImageryType;56 55 import org.openstreetmap.josm.plugins.imagery.ImageryLayer; 57 56 import org.openstreetmap.josm.plugins.imagery.ImageryPreferences; 57 import org.openstreetmap.josm.plugins.imagery.ImageryInfo.ImageryType; 58 58 59 59 /** … … 151 151 152 152 currentZoomLevel = getBestZoom(); 153 if ( tileSource.getMaxZoom() < currentZoomLevel)154 currentZoomLevel = tileSource.getMaxZoom();155 if ( tileSource.getMinZoom() > currentZoomLevel)156 currentZoomLevel = tileSource.getMinZoom();153 if (currentZoomLevel > getMaxZoomLvl()) 154 currentZoomLevel = getMaxZoomLvl(); 155 if (currentZoomLevel < getMinZoomLvl()) 156 currentZoomLevel = getMinZoomLvl(); 157 157 clearTileCache(); 158 158 //tileloader = new OsmTileLoader(this);
Note:
See TracChangeset
for help on using the changeset viewer.