Specifies whether parts of the polygon which could be occluded are drawn or
not. Polygons can be occluded by map geometry (e.g. buildings).
Default value: false.
Specifies whether to connect the polygon to the ground. To extrude a
polygon, the altitude mode must be either relativeToGround or absolute.
Default value: false.
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.
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.
When true, edges of the polygon are interpreted as geodesic and will follow
the curvature of the Earth. When false, edges of the polygon are rendered
as straight lines in screen space.
Default value: true.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[],[],null,["# GoogleMaps3D Framework Reference\n\nStyleOptions\n============\n\n struct StyleOptions\n\n extension ../../Structs/Polygon.html.StyleOptions : Equatable, Hashable\n\n- `\n ``\n ``\n `\n\n ### [==(_:_:)](#/s:12GoogleMaps3D7PolygonV12StyleOptionsV2eeoiySbAE_AEtFZ)\n\n `\n ` \n Returns a Boolean value indicating whether two values are equal.\n\n Equality is the inverse of inequality. For any values `a` and `b`,\n `a == b` implies that `a != b` is `false`. \n\n #### Declaration\n\n Swift \n\n static func == (a: ../../Structs/Polygon.html.StyleOptions, b: ../../Structs/Polygon.html.StyleOptions) -\u003e Bool\n\n- `\n ``\n ``\n `\n\n ### [drawOccludedSegments](#/s:12GoogleMaps3D7PolygonV12StyleOptionsV20drawOccludedSegmentsSbvp)\n\n `\n ` \n Specifies whether parts of the polygon which could be occluded are drawn or\n not. Polygons can be occluded by map geometry (e.g. buildings).\n Default value: false. \n\n #### Declaration\n\n Swift \n\n let drawOccludedSegments: Bool\n\n- `\n ``\n ``\n `\n\n ### [extruded](#/s:12GoogleMaps3D7PolygonV12StyleOptionsV8extrudedSbvp)\n\n `\n ` \n Specifies whether to connect the polygon to the ground. To extrude a\n polygon, the altitude mode must be either relativeToGround or absolute.\n Default value: false. \n\n #### Declaration\n\n Swift \n\n let extruded: Bool\n\n- `\n ``\n ``\n `\n\n ### [fillColor](#/s:12GoogleMaps3D7PolygonV12StyleOptionsV9fillColorSo7UIColorCvp)\n\n `\n ` \n The fill color in UIColor.\n Default value: UIColor.white. \n\n #### Declaration\n\n Swift \n\n let fillColor: UIColor\n\n- `\n ``\n ``\n `\n\n ### [hash(into:)](#/s:12GoogleMaps3D7PolygonV12StyleOptionsV4hash4intoys6HasherVz_tF)\n\n `\n ` \n Hashes the essential components of this value by feeding them into the\n given hasher.\n\n Implement this method to conform to the `Hashable` protocol. The\n components used for hashing must be the same as the components compared\n in your type's `==` operator implementation. Call `hasher.combine(_:)`\n with each of these components. \n Important\n\n In your implementation of `hash(into:)`,\n don't call `finalize()` on the `hasher` instance provided,\n or replace it with a different instance.\n Doing so may become a compile-time error in the future. \n\n #### Declaration\n\n Swift \n\n func hash(into hasher: inout Hasher)\n\n- `\n ``\n ``\n `\n\n ### [hashValue](#/s:12GoogleMaps3D7PolygonV12StyleOptionsV9hashValueSivp)\n\n `\n ` \n The hash value.\n\n Hash values are not guaranteed to be equal across different executions of\n your program. Do not save hash values to use during a future execution. \n Important\n `hashValue` is deprecated as a `Hashable` requirement. To conform to `Hashable`, implement the [hash(into:)](../../Structs/Polygon/StyleOptions.html#/s:12GoogleMaps3D7PolygonV12StyleOptionsV4hash4intoys6HasherVz_tF) requirement instead. The compiler provides an implementation for `hashValue` for you. \n\n #### Declaration\n\n Swift \n\n var hashValue: Int { get }\n\n- `\n ``\n ``\n `\n\n ### [init(fillColor:strokeColor:strokeWidth:isGeodesic:extruded:drawOccludedSegments:)](#/s:12GoogleMaps3D7PolygonV12StyleOptionsV9fillColor06strokeG00H5Width10isGeodesic8extruded20drawOccludedSegmentsAESo7UIColorC_AMSdS3btcfc)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n init(fillColor: UIColor = .white, strokeColor: UIColor = .white, strokeWidth: Double = 1.0, isGeodesic: Bool = true, extruded: Bool = false, drawOccludedSegments: Bool = false)\n\n- `\n ``\n ``\n `\n\n ### [isGeodesic](#/s:12GoogleMaps3D7PolygonV12StyleOptionsV10isGeodesicSbvp)\n\n `\n ` \n When true, edges of the polygon are interpreted as geodesic and will follow\n the curvature of the Earth. When false, edges of the polygon are rendered\n as straight lines in screen space.\n Default value: true. \n\n #### Declaration\n\n Swift \n\n let isGeodesic: Bool\n\n- `\n ``\n ``\n `\n\n ### [strokeColor](#/s:12GoogleMaps3D7PolygonV12StyleOptionsV11strokeColorSo7UIColorCvp)\n\n `\n ` \n The stroke color in UIColor.\n Default value: UIColor.white. \n\n #### Declaration\n\n Swift \n\n let strokeColor: UIColor\n\n- `\n ``\n ``\n `\n\n ### [strokeWidth](#/s:12GoogleMaps3D7PolygonV12StyleOptionsV11strokeWidthSdvp)\n\n `\n ` \n The stroke width in pixels.\n Default value: 1.0. \n\n #### Declaration\n\n Swift \n\n let strokeWidth: Double"]]