Allows to express objects relative to the average mean sea level. That also
means that if the terrain level of detail changes underneath the object,
its absolute position will remain the same.
Allows to express objects placed on the ground. They will remain at ground
level following the terrain regardless of what altitude is provided. If the
object is positioned over a major body of water, it will be placed at sea
level.
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.
Allows to express objects relative to the ground surface. If the terrain
level of detail changes, the position of the object will remain constant
relative to the ground. When over water, the altitude will be interpreted
as a value in meters above sea level.
Allows to express altitude of points, cameras and other objects relative to
the highest of ground+building+water surface. When over water, this will be
water surface; when over terrain, this will be the building surface (if
present) or ground surface (if no buildings).
[[["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\nAltitudeMode\n============\n\n enum AltitudeMode\n\n extension AltitudeMode : Equatable, Hashable\n\n- `\n ``\n ``\n `\n\n ### [==(_:_:)](#/s:12GoogleMaps3D12AltitudeModeO2eeoiySbAC_ACtFZ)\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: AltitudeMode, b: AltitudeMode) -\u003e Bool\n\n- `\n ``\n ``\n `\n\n ### [absolute](#/s:12GoogleMaps3D12AltitudeModeO8absoluteyA2CmF)\n\n `\n ` \n Allows to express objects relative to the average mean sea level. That also\n means that if the terrain level of detail changes underneath the object,\n its absolute position will remain the same. \n\n #### Declaration\n\n Swift \n\n case absolute\n\n- `\n ``\n ``\n `\n\n ### [clampToGround](#/s:12GoogleMaps3D12AltitudeModeO13clampToGroundyA2CmF)\n\n `\n ` \n Allows to express objects placed on the ground. They will remain at ground\n level following the terrain regardless of what altitude is provided. If the\n object is positioned over a major body of water, it will be placed at sea\n level. \n\n #### Declaration\n\n Swift \n\n case clampToGround\n\n- `\n ``\n ``\n `\n\n ### [hash(into:)](#/s:12GoogleMaps3D12AltitudeModeO4hash4intoys6HasherVz_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:12GoogleMaps3D12AltitudeModeO9hashValueSivp)\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:)](../Enums/AltitudeMode.html#/s:12GoogleMaps3D12AltitudeModeO4hash4intoys6HasherVz_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 ### [relativeToGround](#/s:12GoogleMaps3D12AltitudeModeO16relativeToGroundyA2CmF)\n\n `\n ` \n Allows to express objects relative to the ground surface. If the terrain\n level of detail changes, the position of the object will remain constant\n relative to the ground. When over water, the altitude will be interpreted\n as a value in meters above sea level. \n\n #### Declaration\n\n Swift \n\n case relativeToGround\n\n- `\n ``\n ``\n `\n\n ### [relativeToMesh](#/s:12GoogleMaps3D12AltitudeModeO14relativeToMeshyA2CmF)\n\n `\n ` \n Allows to express altitude of points, cameras and other objects relative to\n the highest of ground+building+water surface. When over water, this will be\n water surface; when over terrain, this will be the building surface (if\n present) or ground surface (if no buildings). \n\n #### Declaration\n\n Swift \n\n case relativeToMesh"]]