Tabnine Logo
Projection.getVisibleRegion
Code IndexAdd Tabnine to your IDE (free)

How to use
getVisibleRegion
method
in
com.google.android.gms.maps.Projection

Best Java code snippets using com.google.android.gms.maps.Projection.getVisibleRegion (Showing top 7 results out of 315)

origin: mg6maciej/android-maps-extensions

@Override
public VisibleRegion getVisibleRegion() {
  return projection.getVisibleRegion();
}
origin: car2go/AnyMaps

@Override
public VisibleRegion getVisibleRegion() {
  return AnyMapAdapter.adapt(projection.getVisibleRegion());
}
origin: SkyTreasure/Airbnb-Android-Google-Map-View

  @Override
  public void onCameraChange(CameraPosition position) {
    LatLngBounds bounds = mGoogleMap.getProjection().getVisibleRegion().latLngBounds;
    mAdapter.setBounds(bounds);
  }
});
origin: wiglenet/wigle-wifi-wardriving

private boolean showDefaultIcon(final Network network) {
  final boolean showLabel = prefs.getBoolean( ListFragment.PREF_MAP_LABEL, true );
  if (showLabel) {
    final LatLngBounds bounds = map.getProjection().getVisibleRegion().latLngBounds;
    // if on screen, and room in labeled networks, we can show the label
    if (bounds.contains(network.getLatLng()) && MapRender.this.labeledNetworks.size() <= MAX_LABELS) {
      return false;
    }
  }
  return true;
}
origin: SkyTreasure/Airbnb-Android-Google-Map-View

  @Override
  public void onCameraChange(CameraPosition position) {
    LatLngBounds bounds = map.getProjection().getVisibleRegion().latLngBounds;
    mAdapter.setBounds(bounds);
  }
});
origin: wiglenet/wigle-wifi-wardriving

  @Override
  public void onCameraChange(CameraPosition position) {
    new DynamicallyAddMarkerTask().execute(map.getProjection().getVisibleRegion().latLngBounds);
  }
});
origin: car2go/AnyMaps

@Test
public void testGetVisibleRegion() throws Exception {
  // Given
  Projection projection = mock(Projection.class);
  VisibleRegion visibleRegion = mock(VisibleRegion.class);
  doReturn(visibleRegion)
      .when(projection)
      .getVisibleRegion();
  ProjectionAdapter adapter = new ProjectionAdapter(projection);
  // When
  adapter.getVisibleRegion();
  // Then
  verify(projection).getVisibleRegion();
  verifyStatic();
  AnyMapAdapter.adapt(refEq(visibleRegion));
}
com.google.android.gms.mapsProjectiongetVisibleRegion

Popular methods of Projection

  • fromScreenLocation
  • toScreenLocation
  • fromPixels
  • metersToEquatorPixels
  • toPixels

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • Permission (java.security)
    Legacy security code; do not use.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JTextField (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now