Changeset 29162 in osm for applications/viewer/jmapviewer


Ignore:
Timestamp:
2013-01-04T07:33:26+01:00 (12 years ago)
Author:
the111
Message:

Fix #josm8321 - JMapViewer constructor does not use parameter downloadThreadCount

File:
1 edited

Legend:

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

    r28505 r29162  
    33//License: GPL. Copyright 2008 by Jan Peter Stotz
    44
    5 import java.awt.Color;
    65import java.awt.Dimension;
    76import java.awt.Font;
    87import java.awt.Graphics;
    9 import java.awt.Image;
    108import java.awt.Insets;
    119import java.awt.Point;
    12 import java.awt.Rectangle;
    1310import java.awt.event.ActionEvent;
    1411import java.awt.event.ActionListener;
    1512import java.awt.event.MouseEvent;
    16 import java.awt.font.TextAttribute;
    17 import java.awt.geom.Rectangle2D;
    18 import java.util.HashMap;
    1913import java.util.LinkedList;
    2014import java.util.List;
     
    9993     */
    10094    public JMapViewer() {
    101         this(new MemoryTileCache(), 4);
     95        this(new MemoryTileCache(), 8);
    10296        new DefaultMapController(this);
    10397    }
     
    10599    public JMapViewer(TileCache tileCache, int downloadThreadCount) {
    106100        super();
     101        JobDispatcher.WORKER_THREAD_MAX_COUNT = downloadThreadCount;
    107102        tileSource = new OsmTileSource.Mapnik();
    108103        tileController = new TileController(tileSource, tileCache, this);
Note: See TracChangeset for help on using the changeset viewer.