Changeset 25172 in osm for applications/viewer/jmapviewer/src/org/openstreetmap
- Timestamp:
- 2011-01-28T19:11:36+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/BingAerialTileSource.java
r24763 r25172 5 5 import java.io.InputStream; 6 6 import java.net.URL; 7 import java.net.URLConnection; 7 8 import java.util.ArrayList; 8 9 import java.util.List; … … 13 14 import javax.imageio.ImageIO; 14 15 16 import org.openstreetmap.josm.Main; 15 17 import org.xml.sax.Attributes; 16 18 import org.xml.sax.InputSource; … … 104 106 try { 105 107 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"); 106 InputStream stream = u.openStream(); 108 URLConnection conn = u.openConnection(); 109 conn.setConnectTimeout(Main.pref.getInteger("imagery.bing.load-attribution-text.timeout", 4000)); 110 InputStream stream = conn.getInputStream(); 111 107 112 XMLReader parser = XMLReaderFactory.createXMLReader(); 108 113 AttrHandler handler = new AttrHandler();
Note:
See TracChangeset
for help on using the changeset viewer.