GoogleMaps Framework Reference

GMSStyleSpan

  @interface 
 GMSStyleSpan 
 : 
 NSObject 
 

Describes the style for some region of a polyline.

  • Factory returning a solid color span of length one segment. Equivalent to [GMSStyleSpan spanWithStyle:[GMSStrokeStyle solidColor:color] segments:1] .

    Declaration

    Swift

      convenience 
     init 
     ( 
     color 
     : 
     UIColor 
     ) 
     
    

    Objective-C

      + 
     ( 
     nonnull 
     instancetype 
     ) 
     spanWithColor 
     :( 
     nonnull 
     UIColor 
     * 
     ) 
     color 
     ; 
     
    
  • Factory returning a solid color span with a given number of segments. Equivalent to [GMSStyleSpan spanWithStyle:[GMSStrokeStyle solidColor:color] segments:segments] .

    Declaration

    Swift

      convenience 
     init 
     ( 
     color 
     : 
     UIColor 
     , 
     segments 
     : 
     Double 
     ) 
     
    

    Objective-C

      + 
     ( 
     nonnull 
     instancetype 
     ) 
     spanWithColor 
     :( 
     nonnull 
     UIColor 
     * 
     ) 
     color 
     segments 
     :( 
     double 
     ) 
     segments 
     ; 
     
    
  • Factory returning a span with the given style of length one segment. Equivalent to [GMSStyleSpan spanWithStyle:style segments:1] .

    Declaration

    Swift

      convenience 
     init 
     ( 
     style 
     : 
      GMSStrokeStyle 
     
     ) 
     
    

    Objective-C

      + 
     ( 
     nonnull 
     instancetype 
     ) 
     spanWithStyle 
     :( 
     nonnull 
      GMSStrokeStyle 
     
     * 
     ) 
     style 
     ; 
     
    
  • Factory returning a span with the given style and length in number of segments. segments must be greater than 0 (i.e. can’t be 0).

    Declaration

    Swift

      convenience 
     init 
     ( 
     style 
     : 
      GMSStrokeStyle 
     
     , 
     segments 
     : 
     Double 
     ) 
     
    

    Objective-C

      + 
     ( 
     nonnull 
     instancetype 
     ) 
     spanWithStyle 
     :( 
     nonnull 
      GMSStrokeStyle 
     
     * 
     ) 
     style 
     segments 
     :( 
     double 
     ) 
     segments 
     ; 
     
    
  • The style of this span.

    Declaration

    Swift

      var 
     style 
     : 
      GMSStrokeStyle 
     
     { 
     get 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     readonly 
     ) 
      GMSStrokeStyle 
     
     * 
     _Nonnull 
     style 
     ; 
     
    
  • The length of this span in number of segments.

    Declaration

    Swift

      var 
     segments 
     : 
     Double 
     { 
     get 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     readonly 
     ) 
     double 
     segments 
     ; 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: