private void adjustZoom() {
		if (centerLocation.getX() == 0.0 && centerLocation.getY() == 0.0) {
			setZoom(1);
			centerMap();
			return;
		}
		int zoom = 16;
		setZoom(zoom);
		centerMap();
		while (!allLocationsVisible() && zoom != 1) {
			setZoom(--zoom);
			centerMap();
		} 
		
	}