Changeset 25217 in osm for applications/viewer/jmapviewer/src/org/openstreetmap
- Timestamp:
- 2011-02-02T19:28:17+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/BingAerialTileSource.java
r25172 r25217 14 14 import javax.imageio.ImageIO; 15 15 16 import org.openstreetmap.josm.Main;17 16 import org.xml.sax.Attributes; 18 17 import org.xml.sax.InputSource; … … 31 30 if (attributions == null) { 32 31 attributions = Executors.newSingleThreadExecutor().submit(new Callable<List<Attribution>>() { 33 @Override34 32 public List<Attribution> call() throws Exception { 35 33 return loadAttributionText(); … … 107 105 URL u = new URL("http://dev.virtualearth.net/REST/v1/Imagery/Metadata/Aerial/0,0?zl=1&mapVersion=v1&key="+API_KEY+"&include=ImageryProviders&output=xml"); 108 106 URLConnection conn = u.openConnection(); 109 conn.setConnectTimeout(Main.pref.getInteger("imagery.bing.load-attribution-text.timeout", 4000)); 107 108 // This is not JOSM! Do not use anything other than standard JRE classes within this package! 109 // See package.html for details 110 //conn.setConnectTimeout(Main.pref.getInteger("imagery.bing.load-attribution-text.timeout", 4000)); 111 110 112 InputStream stream = conn.getInputStream(); 111 113 … … 147 149 } 148 150 149 @Override150 151 public TileUpdate getTileUpdate() { 151 152 return TileUpdate.IfNoneMatch;
Note:
See TracChangeset
for help on using the changeset viewer.