Polygon
struct Polygonextension Polygon : Copyable, Equatable, Escapable, Hashable, Identifiable, MapContentA 3D polygon that can be placed on a map.
Map(mode: .hybrid) {
  Polygon(
    outerCoordinates: [
      .init(latitude: 37.7749, longitude: -122.4194, altitude: 0),
      .init(latitude: 37.7740, longitude: -122.4184, altitude: 0),
      .init(latitude: 37.7750, longitude: -122.4174, altitude: 0),
    ]
  )
}
- 
                  
                  Returns a Boolean value indicating whether two values are equal. Equality is the inverse of inequality. For any values aandb,a == bimplies thata != bisfalse.DeclarationSwift static func == (a: Polygon, b: Polygon) -> Bool
- 
                  
                  A type representing the stable identity of the entity associated with an instance. DeclarationSwift @available(watchOS, introduced: 6.0) @available(macOS, introduced: 10.15) @available(iOS, introduced: 13.0) @available(tvOS, introduced: 13.0) typealias ID = String
- 
                  
                  Declaration
- 
                  
                  DeclarationSwift func add(coordinator: RenderingCoordinator)
- 
                  
                  Specifies how altitudes in the coordinates are interpreted. Default value: clampToGround. DeclarationSwift let altitudeMode: AltitudeMode
- 
                  
                  The draw order compared to other polys. Default value: 0. DeclarationSwift let drawOrder: Int32
- 
                  
                  Hashes the essential components of this value by feeding them into the given hasher. Implement this method to conform to the Hashableprotocol. The components used for hashing must be the same as the components compared in your type’s==operator implementation. Callhasher.combine(_:)with each of these components.Important In your implementation of hash(into:), don’t callfinalize()on thehasherinstance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.DeclarationSwift 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 hashValueis deprecated as aHashablerequirement. To conform toHashable, implement thehash(into:)requirement instead. The compiler provides an implementation forhashValuefor you.DeclarationSwift var hashValue: Int { get }
- 
                  
                  The id used to store the polygon as KML feature in the KML document. It’s created and used only internally. DeclarationSwift let id: String
- 
                  
                  DeclarationSwift init(outerCoordinates: [LatLngAltitude], innerCoordinates: [[LatLngAltitude]] = [], altitudeMode: AltitudeMode = .clampToGround, drawOrder: Int32 = 0)
- 
                  
                  Inner boundary of the polygon. A Polygon can contain multiple inner coordinates, which create multiple cut-outs inside the polygon. DeclarationSwift let innerCoordinates: [[LatLngAltitude]]
- 
                  
                  Outer boundary of the polygon. DeclarationSwift let outerCoordinates: [LatLngAltitude]
- 
                  
                  DeclarationSwift func remove(coordinator: RenderingCoordinator)
- 
                  
                  DeclarationSwift func style(_ style: Polygon.StyleOptions) -> Polygon
- 
                  
                  Style options of the polygon. DeclarationSwift var styleOptions: Polygon.StyleOptions
- 
                  
                  DeclarationSwift func update(coordinator: RenderingCoordinator)