Examples of OsmTileLoader


Examples of de.hpi.eworld.importer.osm.jmapviewer.OsmTileLoader

            // set to null if a SecurityException was thrown
            // while creating the cachedLoader
            //
            cachedLoader = null;
        }
        uncachedLoader = new OsmTileLoader(this);
        setMapMarkerVisible(false);
        setMinimumSize(new Dimension(350, 350 / 2));
        // We need to set an initial size - this prevents a wrong zoom selection
        // for
        // the area before the component has been displayed the first time
View Full Code Here

Examples of org.openstreetmap.gui.jmapviewer.OsmTileLoader

      TileCache tileCache, int downloadThreadCount) {
    super(name);
    if (tileCache instanceof MemoryTileCache)
      ((MemoryTileCache) tileCache).setCacheSize(LogicConstants.getInt("MAXTILESCACHED", 50));
    this.tileSource = tileSource;
    tileLoader = new OsmTileLoader(this);
    this.tileCache = tileCache;
    jobDispatcher = JobDispatcher.getInstance();
    tileGridVisible = false;
    this.background = true;
  }
View Full Code Here

Examples of org.openstreetmap.gui.jmapviewer.OsmTileLoader

    super(name);
    this.tileSource = tileSource;
    if (osmFileCache) {
      this.tileLoader = new OsmFileCacheTileLoader(this);
    } else {
      this.tileLoader = new OsmTileLoader(this);
    }
    this.tileCache = tileCache;
    jobDispatcher = JobDispatcher.getInstance();
    tileGridVisible = false;
    this.background = true;
View Full Code Here

Examples of org.openstreetmap.gui.jmapviewer.OsmTileLoader

        SpringLayout springLayout = new SpringLayout();
        setLayout(springLayout);
        TMSLayer.setMaxWorkers();
        cachedLoader = TMSLayer.loaderFactory.makeTileLoader(this);

        uncachedLoader = new OsmTileLoader(this);
        uncachedLoader.headers.put("User-Agent", Version.getInstance().getFullAgentString());
        setZoomContolsVisible(Main.pref.getBoolean("slippy_map_chooser.zoomcontrols",false));
        setMapMarkerVisible(false);
        setMinimumSize(new Dimension(350, 350 / 2));
        // We need to set an initial size - this prevents a wrong zoom selection
View Full Code Here

Examples of org.openstreetmap.gui.jmapviewer.OsmTileLoader

        tileCache = new MemoryTileCache();

        tileLoader = loaderFactory.makeTileLoader(this);
        if (tileLoader == null) {
            tileLoader = new OsmTileLoader(this);
        }
        tileLoader.timeoutConnect = Main.pref.getInteger("socket.timeout.connect",15) * 1000;
        tileLoader.timeoutRead = Main.pref.getInteger("socket.timeout.read", 30) * 1000;
        if (tileSource instanceof TemplatedTMSTileSource) {
            for(Entry<String, String> e : ((TemplatedTMSTileSource)tileSource).getHeaders().entrySet()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.