Changeset 4538 in josm
- Timestamp:
- 2011-10-23T12:17:50+02:00 (13 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java
r4531 r4538 24 24 import java.util.List; 25 25 import java.util.Map; 26 import java.util.Map.Entry; 26 27 import java.util.regex.Matcher; 27 28 import java.util.regex.Pattern; … … 108 109 protected MemoryTileCache tileCache; 109 110 protected TileSource tileSource; 110 protected TileLoader tileLoader;111 protected OsmTileLoader tileLoader; 111 112 JobDispatcher jobDispatcher = JobDispatcher.getInstance(); 112 113 … … 276 277 if (tileLoader == null) { 277 278 tileLoader = new OsmTileLoader(this); 279 } 280 tileLoader.timeoutConnect = Main.pref.getInteger("socket.timeout.connect",15) * 1000; 281 tileLoader.timeoutRead = Main.pref.getInteger("socket.timeout.read", 30) * 1000; 282 if (tileSource instanceof TemplatedTMSTileSource) { 283 for(Entry<String, String> e : ((TemplatedTMSTileSource)tileSource).getHeaders().entrySet()) { 284 tileLoader.headers.put(e.getKey(), e.getValue()); 285 } 278 286 } 279 287 }
Note:
See TracChangeset
for help on using the changeset viewer.