public final class

VisibleRegion

extends Object
implements Parcelable
java.lang.Object
   ↳ com.amazon.geo.mapsv2.model.VisibleRegion

Class Overview

Object representing the four sided polygon currently visible in the map. If the camera is tilted, this defines a trapezoid instead of a rectangle.

To get the current VisibleRegion for the map, use Projection.getVisibleRegion().

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public final LatLng farLeft Top left corner of the camera, as a LatLng
public final LatLng farRight Top right corner of the camera, as a LatLng
public final LatLngBounds latLngBounds A LatLngBounds representing the smallest bounding box of the visible region.
public final LatLng nearLeft Bottom left corner of the camera, as a LatLng
public final LatLng nearRight Bottom right corner of the camera, as a LatLng
Public Constructors
VisibleRegion(LatLng nearLeft, LatLng nearRight, LatLng farLeft, LatLng farRight, LatLngBounds bounds)
Creates a visible region given the four corners and the bounds.
Public Methods
int describeContents()
boolean equals(Object obj)
int hashCode()
String toString()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public final LatLng farLeft

Top left corner of the camera, as a LatLng

public final LatLng farRight

Top right corner of the camera, as a LatLng

public final LatLngBounds latLngBounds

A LatLngBounds representing the smallest bounding box of the visible region.

public final LatLng nearLeft

Bottom left corner of the camera, as a LatLng

public final LatLng nearRight

Bottom right corner of the camera, as a LatLng

Public Constructors

public VisibleRegion (LatLng nearLeft, LatLng nearRight, LatLng farLeft, LatLng farRight, LatLngBounds bounds)

Creates a visible region given the four corners and the bounds. No bounds checking is performed in this constructor.

Parameters
nearLeft The top left corner of the region.
nearRight The top right corner of the region.
farLeft The bottom left corner of the region.
farRight The bottom right corner of the region.
bounds Bounding box of the region.

Public Methods

public int describeContents ()

public boolean equals (Object obj)

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel out, int flags)