@Override public void setStationInfos(List<StationInfo> stationInfos) { stationOverlay.setStationInfos(stationInfos); if (selectedStationId != null) { scrollToStation(selectedStationId); } else { fitOverlays(); } }
public void fitOverlays() { mapView .getController() .zoomToSpan(stationOverlay.getLatSpanE6(), stationOverlay.getLonSpanE6()); mapView.getController().animateTo(stationOverlay.getCenter()); }
@Override protected void onPause() { super.onPause(); stationOverlay.dismissPopup(false); }