GoogleNavigation Framework Reference
GMSVisibleRegion
GMSVisibleRegion
contains the four points defining the 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.
-
Bottom left corner of the camera.
Declaration
Swift
var nearLeft: CLLocationCoordinate2D
Objective-C
CLLocationCoordinate2D nearLeft
-
Bottom right corner of the camera.
Declaration
Swift
var nearRight: CLLocationCoordinate2D
Objective-C
CLLocationCoordinate2D nearRight
-
Far left corner of the camera.
Declaration
Swift
var farLeft: CLLocationCoordinate2D
Objective-C
CLLocationCoordinate2D farLeft
-
Far right corner of the camera.
Declaration
Swift
var farRight: CLLocationCoordinate2D
Objective-C
CLLocationCoordinate2D farRight
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["`GMSVisibleRegion` defines the geographical area visible within a map's camera view, represented by a polygon with four corners."],["This polygon can be a trapezoid or a rectangle depending on the camera's tilt, with a trapezoid shape occurring when the camera is tilted."],["The `GMSVisibleRegion` struct includes properties for the coordinates of the four corners: `nearLeft`, `nearRight`, `farLeft`, and `farRight`."],["These corner coordinates represent the bottom left, bottom right, far left, and far right corners of the visible camera view respectively."]]],["`GMSVisibleRegion` defines the visible area in a map's camera as a polygon. This shape can be a trapezoid due to camera tilt, or a rectangle if the camera is directly overhead. The structure includes four properties representing the corners of this visible region: `nearLeft` (bottom left), `nearRight` (bottom right), `farLeft` (far left), and `farRight` (far right). Each corner is represented as a `CLLocationCoordinate2D`, indicating its geographical location.\n"]]