Code example for GoogleMap

Methods: getProjection

0
  public void notifyCameraChanged() { 
    if (!isVisible || !stationsNeedRefresh || map == null) {
      return; 
    } 
     
    LatLngBounds cameraBoundingBox = map.getProjection().getVisibleRegion().latLngBounds;
    if (bounds == null || intersects(cameraBoundingBox, bounds)) {
      fetchStations(); 
    } 
  } 
   
  public void refreshData() { 
    // Mark the current data as obsolete, and let the lazy loading do its work. 
    stationsNeedRefresh = true;
     
    // Check if we are viewing the area right now, and refresh if it is the case. 
    notifyCameraChanged(); 
  } 
   
  public LatLngBounds getLatLngBounds() {
    return bounds;