GoogleMaps Framework Reference

GMSMapViewOptions

  @interface 
 GMSMapViewOptions 
 : 
 NSObject 
 

This class defines initialization-time options for GMSMapView .

  • Initial frame for the view. Defaults to CGRectZero .

    Declaration

    Swift

      var 
     frame 
     : 
     CGRect 
     { 
     get 
     set 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     ) 
     CGRect 
     frame 
     ; 
     
    
  • Initial camera position. Defaults to nil.

    Declaration

    Swift

      var 
     camera 
     : 
      GMSCameraPosition 
     
     ? 
     { 
     get 
     set 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     nullable 
     ) 
      GMSCameraPosition 
     
     * 
     camera 
     ; 
     
    
  • The mapID for advanced map usage. Defaults to nil.

    Declaration

    Swift

      var 
     mapID 
     : 
      GMSMapID 
     
     ? 
     { 
     get 
     set 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     nullable 
     ) 
      GMSMapID 
     
     * 
     mapID 
     ; 
     
    
  • Specifies the background color of the map view, which displays whenever the map tiles are not fully loaded. This is required because GMSMapView ignores the inherited mutable backgroundColor. The color is displayed on the background of the map. Defaults to a light grey color.

    Declaration

    Swift

      var 
     backgroundColor 
     : 
     UIColor 
     ? 
     { 
     get 
     set 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     nullable 
     ) 
     UIColor 
     * 
     backgroundColor 
     ; 
     
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: