VisibleRegion

Contains the four points defining the four-sided polygon that is visible in a map's camera. This polygon can be a trapezoid instead of a rectangle, because a camera can have tilt. If the camera is directly over the center of the camera, the shape is rectangular, but if the camera is tilted, the shape will appear to be a trapezoid whose smallest side is closest to the point of view.

Constructors

Link copied to clipboard
constructor(farLeft: LatLng, farRight: LatLng, nearLeft: LatLng, nearRight: LatLng, latLngBounds: LatLngBounds)

Creates a VisibleRegion given the four corners of the camera.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

LatLng object that defines the far left corner of the camera.

Link copied to clipboard

LatLng object that defines the far right corner of the camera.

Link copied to clipboard

The smallest bounding box that includes the visible region defined in this class.

Link copied to clipboard

LatLng object that defines the bottom left corner of the camera.

Link copied to clipboard

LatLng object that defines the bottom right corner of the camera.

Functions

Link copied to clipboard
open override fun describeContents(): Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this VisibleRegion to another object. If the other object is actually a pointer to this object, or if all four corners and the bounds of the two objects are the same, this method returns true. Otherwise, this method returns false.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
open override fun toString(): String

The string representation of the object.

Link copied to clipboard
open override fun writeToParcel(out: Parcel, flags: Int)

Flatten this object in to a Parcel.