- for (AltosRecord record : records) {
- state = new AltosState(record, state);
- if (state.data.gps != null) {
- map.show(state, 0);
- any_gps = true;
+ for (AltosState state : states) {
+ if (state.gps != null && state.gps.locked && state.gps.nsat >= 4) {
+ if (map == null)
+ map = new AltosSiteMap();
+ map.show(state, null);
+ has_gps = true;