GoogleMaps3D Framework Reference

Polyline

  struct 
 Polyline 
 
  extension 
 Polyline 
 : 
 Copyable 
 , 
 Equatable 
 , 
 Escapable 
 , 
 Hashable 
 , 
 Identifiable 
 , 
 MapContent 
 

A 3D polyline that can be placed on a map.

  Map 
 ( 
 mode 
 : 
 . 
 hybrid 
 ) 
 { 
 Polyline 
 ( 
 coordinates 
 : 
 [ 
 . 
 init 
 ( 
 latitude 
 : 
 37.7749 
 , 
 longitude 
 : 
 - 
 122.4194 
 , 
 altitude 
 : 
 100 
 ), 
 . 
 init 
 ( 
 latitude 
 : 
 37.7750 
 , 
 longitude 
 : 
 - 
 122.4193 
 , 
 altitude 
 : 
 100 
 ), 
 . 
 init 
 ( 
 latitude 
 : 
 37.7751 
 , 
 longitude 
 : 
 - 
 122.4192 
 , 
 altitude 
 : 
 100 
 ), 
 ]) 
 } 
 
  • Returns a Boolean value indicating whether two values are equal.

    Equality is the inverse of inequality. For any values a and b , a == b implies that a != b is false .

    Declaration

    Swift

      static 
     func 
     == 
     ( 
     a 
     : 
     Polyline 
     , 
     b 
     : 
     Polyline 
     ) 
     -> 
     Bool 
     
    
  • Declaration

    Swift

      struct 
     ContourStyle 
     
    
      extension 
      Polyline 
     
     . 
     ContourStyle 
     : 
     Equatable 
     , 
     Hashable 
     
    
  • ID

    A type representing the stable identity of the entity associated with an instance.

    Declaration

    Swift

      @available 
     ( 
     watchOS 
     , 
     introduced 
     : 
     6.0 
     ) 
     @available 
     ( 
     macOS 
     , 
     introduced 
     : 
     10.15 
     ) 
     @available 
     ( 
     iOS 
     , 
     introduced 
     : 
     13.0 
     ) 
     @available 
     ( 
     tvOS 
     , 
     introduced 
     : 
     13.0 
     ) 
     typealias 
     ID 
     = 
     String 
     
    
  • Declaration

    Swift

      struct 
     StrokeStyle 
     
    
      extension 
      Polyline 
     
     . 
     StrokeStyle 
     : 
     Equatable 
     , 
     Hashable 
     
    
  • Declaration

    Swift

      func 
     add 
     ( 
     coordinator 
     : 
     RenderingCoordinator 
     ) 
     
    
  • Specifies how altitudes in the coordinates are interpreted. Default value: clampToGround.

    Declaration

    Swift

      var 
     altitudeMode 
     : 
      AltitudeMode 
     
     
    
  • Declaration

    Swift

      func 
     contour 
     ( 
     _ 
     style 
     : 
     Polyline 
     . 
      ContourStyle 
     
     ) 
     -> 
     Polyline 
     
    
  • Values that define how polylines are drawn to represent the contour of the Earth.

    Declaration

    Swift

      var 
     contourStyle 
     : 
     Polyline 
     . 
      ContourStyle 
     
     
    
  • Sets the coordinates of the polyline.

    Declaration

    Swift

      var 
     coordinates 
     : 
     [ 
      LatLngAltitude 
     
     ] 
     
    
  • The draw order compared to other polys. Default value: 0.

    Declaration

    Swift

      var 
     drawOrder 
     : 
     Int32 
     
    
  • Hashes the essential components of this value by feeding them into the given hasher.

    Implement this method to conform to the Hashable protocol. The components used for hashing must be the same as the components compared in your type’s == operator implementation. Call hasher.combine(_:) with each of these components.

    Important

    In your implementation of hash(into:) , don’t call finalize() on the hasher instance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.

    Declaration

    Swift

      func 
     hash 
     ( 
     into 
     hasher 
     : 
     inout 
     Hasher 
     ) 
     
    
  • The hash value.

    Hash values are not guaranteed to be equal across different executions of your program. Do not save hash values to use during a future execution.

    Important

    hashValue is deprecated as a Hashable requirement. To conform to Hashable , implement the hash(into:) requirement instead. The compiler provides an implementation for hashValue for you.

    Declaration

    Swift

      var 
     hashValue 
     : 
     Int 
     { 
     get 
     } 
     
    
  • id

    Unique identifier

    Declaration

    Swift

      let 
     id 
     : 
     String 
     
    
  • Declaration

    Swift

      init 
     ( 
     coordinates 
     : 
     [ 
      LatLngAltitude 
     
     ], 
     altitudeMode 
     : 
      AltitudeMode 
     
     = 
     . 
     clampToGround 
     , 
     drawOrder 
     : 
     Int32 
     = 
     0 
     ) 
     
    
  • Declaration

    Swift

      func 
     remove 
     ( 
     coordinator 
     : 
     RenderingCoordinator 
     ) 
     
    
  • Declaration

    Swift

      func 
     stroke 
     ( 
     _ 
     style 
     : 
     Polyline 
     . 
      StrokeStyle 
     
     ) 
     -> 
     Polyline 
     
    
  • Stroke style of the polyline.

    Declaration

    Swift

      var 
     strokeStyle 
     : 
     Polyline 
     . 
      StrokeStyle 
     
     
    
  • Declaration

    Swift

      func 
     update 
     ( 
     coordinator 
     : 
     RenderingCoordinator 
     ) 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: