+ void add_mark(double lat, double lon, int state, String label) {
+ map.add_mark(lat, lon, state, label);
+ }
+
+ void reset_marks() {
+ map.clear_marks();
+ AltosLatLon centre = null;
+ String centre_name = null;
+ if (map != null && map.map != null)
+ centre = map.map.centre;
+ for (AltosLaunchSite site : sites) {
+ if (centre != null && centre.lat == site.latitude && centre.lon == site.longitude)
+ centre_name = site.name;
+ else
+ add_mark(site.latitude, site.longitude, AltosLib.ao_flight_main, site.name);
+ }
+ if (centre != null)
+ add_mark(centre.lat, centre.lon, AltosLib.ao_flight_boost, centre_name);
+ }
+