summaryrefslogtreecommitdiff
path: root/altosui/AltosUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-07-16 16:37:40 -0700
committerKeith Packard <keithp@keithp.com>2011-07-16 20:47:32 -0700
commit225073fd822f9861a83d65386c29fda9b37bf273 (patch)
tree038023b19c35004f1a11579642b3f875394cf394 /altosui/AltosUI.java
parentcbd14ba103ee5e3c5eec18e3a4ff13c320b98634 (diff)
altosui: Add map preloading GUI
Provide a way to manually enter latitude and longitude, preview the map area while downloading a 9x9 grid of map tiles to be used when monitoring flights without network access. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
-rw-r--r--altosui/AltosUI.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java
index 6a24d8a9..d8c8d61c 100644
--- a/altosui/AltosUI.java
+++ b/altosui/AltosUI.java
@@ -180,6 +180,13 @@ public class AltosUI extends JFrame {
}
});
+ b = addButton(1, 2, "Load Maps");
+ b.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ LoadMaps();
+ }
+ });
+
setTitle("AltOS");
pane.doLayout();
@@ -238,6 +245,10 @@ public class AltosUI extends JFrame {
new AltosScanUI(AltosUI.this);
}
+ void LoadMaps() {
+ new AltosSiteMapPreload(AltosUI.this);
+ }
+
/*
* Replay a flight from telemetry data
*/