summaryrefslogtreecommitdiff
path: root/altosuilib/AltosUIMap.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-10-07 10:01:30 -0700
committerKeith Packard <keithp@keithp.com>2018-10-07 10:01:30 -0700
commit5c957107ee5917d865eb866319f86cf8c109f212 (patch)
tree41ad62be720a8c86d6775c2a3dfd502134344e35 /altosuilib/AltosUIMap.java
parente4f4183ce206d4cb7bbc89e1065eb34b05cf11c4 (diff)
altosui/altosdroid: Disable offline map type selections
Our server only supports hybrid maps for now. If that changes, we can re-add this support easily enough. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIMap.java')
-rw-r--r--altosuilib/AltosUIMap.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/altosuilib/AltosUIMap.java b/altosuilib/AltosUIMap.java
index 3fb33d4a..7f114e37 100644
--- a/altosuilib/AltosUIMap.java
+++ b/altosuilib/AltosUIMap.java
@@ -386,8 +386,10 @@ public class AltosUIMap extends JComponent implements AltosFlightDisplay, AltosM
JLabel zoom_label;
public void set_maptype(int type) {
+/*
map.set_maptype(type);
maptype_combo.setSelectedIndex(type);
+*/
}
/* AltosUIMapPreload functions */
@@ -433,7 +435,9 @@ public class AltosUIMap extends JComponent implements AltosFlightDisplay, AltosM
/* internal layout bits */
private GridBagLayout layout = new GridBagLayout();
+/*
JComboBox<String> maptype_combo;
+*/
MapView view;
@@ -522,6 +526,7 @@ public class AltosUIMap extends JComponent implements AltosFlightDisplay, AltosM
c.weighty = 0;
add(zoom_out, c);
+/*
maptype_combo = new JComboBox<String>(map.maptype_labels);
maptype_combo.setEditable(false);
@@ -540,7 +545,7 @@ public class AltosUIMap extends JComponent implements AltosFlightDisplay, AltosM
c.weightx = 0;
c.weighty = 0;
add(maptype_combo, c);
-
+*/
map = new AltosMap(this);
}
}