- Timestamp:
- 2012-01-22T21:14:40+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/imagery
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r4713 r4853 23 23 import org.openstreetmap.gui.jmapviewer.tilesources.OsmTileSource.Mapnik; 24 24 import org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource; 25 import org.openstreetmap.josm.tools.CheckParameterUtil; 25 26 26 27 /** … … 187 188 188 189 public ImageryInfo(ImageryPreferenceEntry e) { 190 CheckParameterUtil.ensureParameterNotNull(e.name, "name"); 191 CheckParameterUtil.ensureParameterNotNull(e.url, "url"); 189 192 name = e.name; 190 193 url = e.url; … … 197 200 } 198 201 } 202 if (imageryType == null) throw new IllegalArgumentException("unkown type"); 199 203 pixelPerDegree = e.pixel_per_eastnorth; 200 204 defaultMaxZoom = e.max_zoom; -
trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
r4450 r4853 52 52 } else { 53 53 for (ImageryPreferenceEntry prefEntry : entries) { 54 ImageryInfo i = new ImageryInfo(prefEntry); 55 add(i); 54 try { 55 ImageryInfo i = new ImageryInfo(prefEntry); 56 add(i); 57 } catch (IllegalArgumentException e) { 58 System.err.println("Warning: Unable to load imagery preference entry:"+e); 59 } 56 60 } 57 61 Collections.sort(layers);
Note:
See TracChangeset
for help on using the changeset viewer.