summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2014-01-20 04:52:43 +1000
committerAnthony Towns <aj@erisian.com.au>2014-01-20 04:52:43 +1000
commitaab5873c87d6ecfe0854751746f80d4bc7ebeffa (patch)
tree0ee227bda3442491e111694ffb1f8dd45a2b25c1
parent7f9cda0e2531a7bba7f1b4e3b7212a62b5bec1ed (diff)
AltosSiteMapPreload: only load 49 maps
Google Static Maps API limits queries to 50 maps per IP per minute, so querying a 7x7 array instead of a 9x9 array seems more likely to work well.
-rw-r--r--altosui/AltosSiteMapPreload.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/altosui/AltosSiteMapPreload.java b/altosui/AltosSiteMapPreload.java
index fd648abc..7112fed6 100644
--- a/altosui/AltosSiteMapPreload.java
+++ b/altosui/AltosSiteMapPreload.java
@@ -213,7 +213,7 @@ public class AltosSiteMapPreload extends AltosUIDialog implements ActionListener
AltosMapPos lat;
AltosMapPos lon;
- final static int radius = 4;
+ final static int radius = 3;
final static int width = (radius * 2 + 1);
final static int height = (radius * 2 + 1);
@@ -326,7 +326,7 @@ public class AltosSiteMapPreload extends AltosUIDialog implements ActionListener
pane.setLayout(new GridBagLayout());
- map = new AltosSiteMap(4);
+ map = new AltosSiteMap(radius);
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.CENTER;
@@ -464,4 +464,4 @@ public class AltosSiteMapPreload extends AltosUIDialog implements ActionListener
setLocationRelativeTo(owner);
setVisible(true);
}
-} \ No newline at end of file
+}