GoogleMaps Framework Reference

  • GMSVisibleRegion 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.

  • This polygon is represented by four points: nearLeft , nearRight , farLeft , and farRight , which correspond to the corners of the visible area.

  • Each of these points is expressed as a CLLocationCoordinate2D , providing latitude and longitude coordinates.

  • When the camera is tilted, the polygon will appear as a trapezoid with the smallest side closest to the camera's point of view.

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.

  • 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 
     
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: