Changeset 25217 in osm


Ignore:
Timestamp:
2011-02-02T19:28:17+01:00 (14 years ago)
Author:
stotz
Message:

timeout removed because of JOSM dependency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/BingAerialTileSource.java

    r25172 r25217  
    1414import javax.imageio.ImageIO;
    1515
    16 import org.openstreetmap.josm.Main;
    1716import org.xml.sax.Attributes;
    1817import org.xml.sax.InputSource;
     
    3130        if (attributions == null) {
    3231            attributions = Executors.newSingleThreadExecutor().submit(new Callable<List<Attribution>>() {
    33                 @Override
    3432                public List<Attribution> call() throws Exception {
    3533                    return loadAttributionText();
     
    107105            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");
    108106            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           
    110112            InputStream stream = conn.getInputStream();
    111113           
     
    147149    }
    148150
    149     @Override
    150151    public TileUpdate getTileUpdate() {
    151152        return TileUpdate.IfNoneMatch;
Note: See TracChangeset for help on using the changeset viewer.