altosuilib: Remove old map bits
[fw/altos] / altosuilib / AltosUIMapNew.java
index 4191a562ffef8c7d0230179ff423c3258094c266..511d8fe683db7d7ab336dcc15c1edf06652ecb73 100644 (file)
@@ -283,16 +283,16 @@ public class AltosUIMapNew extends JComponent implements AltosFlightDisplay, Alt
                                if (t.has_location()) {
                                        String  message = null;
                                        switch (status) {
-                                       case AltosUIMapCache.loading:
+                                       case AltosMapTile.loading:
                                                message = "Loading...";
                                                break;
-                                       case AltosUIMapCache.bad_request:
+                                       case AltosMapTile.bad_request:
                                                message = "Internal error";
                                                break;
-                                       case AltosUIMapCache.failed:
+                                       case AltosMapTile.failed:
                                                message = "Network error, check connection";
                                                break;
-                                       case AltosUIMapCache.forbidden:
+                                       case AltosMapTile.forbidden:
                                                message = "Too many requests, try later";
                                                break;
                                        }
@@ -419,6 +419,11 @@ public class AltosUIMapNew extends JComponent implements AltosFlightDisplay, Alt
                return "Map";
        }
 
+       /* AltosGraphUI interface */
+       public void centre(AltosState state) {
+               map.centre(state);
+       }
+
        /* internal layout bits */
        private GridBagLayout layout = new GridBagLayout();