Changeset 24660 in osm for applications/editors/josm
- Timestamp:
- 2010-12-08T22:16:23+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery/tms/BingAerialTileSource.java
r24652 r24660 6 6 import java.net.URL; 7 7 import java.util.ArrayList; 8 import java.util.Collections;9 8 import java.util.List; 10 9 … … 26 25 public BingAerialTileSource() { 27 26 super("Bing Aerial Maps", "http://ecn.t2.tiles.virtualearth.net/tiles/"); 27 28 if (attributions == null) { 29 Thread t = new Thread(new Runnable() { 30 @Override 31 public void run() { 32 attributions = loadAttributionText(); 33 System.err.println("Added " + attributions.size() + " attributions."); 34 } 35 }); 36 t.setDaemon(true); 37 t.run(); 38 } 28 39 } 29 40 … … 105 116 e.printStackTrace(); 106 117 } 107 return Collections.emptyList();118 return null; 108 119 } 109 120 … … 155 166 public String getAttributionText(int zoom, LatLon topLeft, LatLon botRight) { 156 167 if (attributions == null) { 157 attribution s = loadAttributionText();158 System.err.println("Added " + attributions.size() + " attributions.");168 // TODO: don't show Bing tiles until attribution data is loaded 169 return ""; 159 170 } 160 171 Bounds windowBounds = new Bounds(topLeft, botRight);
Note:
See TracChangeset
for help on using the changeset viewer.