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