Stay organized with collections
Save and categorize content based on your preferences.
GMSVisibleRegion
struct{}
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSVisibleRegion\u003c/code\u003e defines the visible area of a map's camera as a polygon, which can be a trapezoid or a rectangle depending on the camera's tilt.\u003c/p\u003e\n"],["\u003cp\u003eThis polygon is represented by four points: \u003ccode\u003enearLeft\u003c/code\u003e, \u003ccode\u003enearRight\u003c/code\u003e, \u003ccode\u003efarLeft\u003c/code\u003e, and \u003ccode\u003efarRight\u003c/code\u003e, which correspond to the corners of the visible area.\u003c/p\u003e\n"],["\u003cp\u003eEach of these points is expressed as a \u003ccode\u003eCLLocationCoordinate2D\u003c/code\u003e, providing latitude and longitude coordinates.\u003c/p\u003e\n"],["\u003cp\u003eWhen the camera is tilted, the polygon will appear as a trapezoid with the smallest side closest to the camera's point of view.\u003c/p\u003e\n"]]],["`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"],null,["# GoogleMaps Framework Reference\n\nGMSVisibleRegion\n================\n\n struct {}\n\n`GMSVisibleRegion` contains the four points defining the polygon that is visible in a map's\ncamera.\n\nThis polygon can be a trapezoid instead of a rectangle, because a camera can have tilt. If the\ncamera is directly over the center of the camera, the shape is rectangular, but if the camera is\ntilted, the shape will appear to be a trapezoid whose smallest side is closest to the point of\nview.\n- `\n ``\n ``\n `\n\n ### [nearLeft](#/c:@SA@GMSVisibleRegion@FI@nearLeft)\n\n `\n ` \n Bottom left corner of the camera. \n\n #### Declaration\n\n Swift \n\n var nearLeft: CLLocationCoordinate2D\n\n Objective-C \n\n CLLocationCoordinate2D nearLeft\n\n- `\n ``\n ``\n `\n\n ### [nearRight](#/c:@SA@GMSVisibleRegion@FI@nearRight)\n\n `\n ` \n Bottom right corner of the camera. \n\n #### Declaration\n\n Swift \n\n var nearRight: CLLocationCoordinate2D\n\n Objective-C \n\n CLLocationCoordinate2D nearRight\n\n- `\n ``\n ``\n `\n\n ### [farLeft](#/c:@SA@GMSVisibleRegion@FI@farLeft)\n\n `\n ` \n Far left corner of the camera. \n\n #### Declaration\n\n Swift \n\n var farLeft: CLLocationCoordinate2D\n\n Objective-C \n\n CLLocationCoordinate2D farLeft\n\n- `\n ``\n ``\n `\n\n ### [farRight](#/c:@SA@GMSVisibleRegion@FI@farRight)\n\n `\n ` \n Far right corner of the camera. \n\n #### Declaration\n\n Swift \n\n var farRight: CLLocationCoordinate2D\n\n Objective-C \n\n CLLocationCoordinate2D farRight"]]