Skip to content

Commit

Permalink
MapCanvas
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed Jan 11, 2024
1 parent 527570c commit 111ed8c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/java/io/github/albertus82/eqbulletin/gui/MapCanvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ public static class Defaults {
private static final int AUTO_SCALE = 0;
private static final int MAX_HQ_RESIZE_RATIO = 250;

private static final int[] zoomLevels = { AUTO_SCALE, 10, 12, 15, 20, 25, 30, 40, 50, 60, 80, 100, 120, 150, 200, 250, 300, 400, 500 };

static {
Arrays.sort(zoomLevels);
}

private final IPreferencesConfiguration configuration = EarthquakeBulletinConfig.getPreferencesConfiguration();

private final Canvas canvas;
Expand Down Expand Up @@ -362,7 +356,9 @@ private MenuItem newLocalizedMenuItem(@NonNull final Menu parent, final int styl
}

public static int[] getZoomLevels() {
return zoomLevels.clone();
final int[] a = new int[] { AUTO_SCALE, 10, 12, 15, 20, 25, 30, 40, 50, 60, 80, 100, 120, 150, 200, 250, 300, 400, 500 };
Arrays.sort(a);
return a;
}

public static synchronized void setMapImage(final MapImage mapImage, final Earthquake earthquake) {
Expand Down

0 comments on commit 111ed8c

Please sign in to comment.