GoogleMaps3D Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Structures
The following structures are available globally.
-
The map camera position and orientation.
Declaration
Swift
struct
Camera
extension
Camera
:
AdditiveArithmetic
,
Animatable
,
Copyable
,
Equatable
,
Escapable
,
VectorArithmetic
-
Declaration
Swift
struct
LatLngAltitude
extension
LatLngAltitude
:
Copyable
,
Equatable
,
Escapable
,
Hashable
-
Declaration
Swift
@MainActor
@preconcurrency
struct
Map
extension
Map
:
MapAnimatable
,
Sendable
,
View
-
A 3D marker that can be placed on a map.
Map
(
mode
:
.
hybrid
)
{
Marker
(
position
:
.
init
(
latitude
:
37.7749
,
longitude
:
-
122.4194
,
altitude
:
0
))
}
Declaration
Swift
struct
Marker
extension
Marker
:
Copyable
,
Equatable
,
Escapable
,
Hashable
,
Identifiable
,
MapContent
-
A 3D model that can be placed on a map.
Map
(
mode
:
.
hybrid
)
{
Model
(
position
:
.
init
(
latitude
:
37.7749
,
longitude
:
-
122.4194
,
altitude
:
100
),
url
:
URL
(
string
:
"path/to/your/model.glb"
)
!
)
}
Declaration
Swift
struct
Model
extension
Model
:
Copyable
,
Equatable
,
Escapable
,
Hashable
,
Identifiable
,
MapContent
-
Declaration
Swift
struct
Orientation3D
extension
Orientation3D
:
Copyable
,
Equatable
,
Escapable
,
Hashable
-
Information about a place that was tapped.
Declaration
Swift
struct
PlaceTapInfo
-
A 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
),
]
)
}
Declaration
Swift
struct
Polygon
extension
Polygon
:
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
),
])
}
Declaration
Swift
struct
Polyline
extension
Polyline
:
Copyable
,
Equatable
,
Escapable
,
Hashable
,
Identifiable
,
MapContent
-
Declaration
Swift
struct
Vector3D
extension
Vector3D
:
Copyable
,
Equatable
,
Escapable
,
Hashable
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[[["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\nStructures\n==========\n\nThe following structures are available globally.\n- `\n ``\n ``\n `\n\n ### [Camera](/maps/documentation/maps-3d/ios-sdk/reference/Structs/Camera)\n\n `\n ` \n The map camera position and orientation. \n\n #### Declaration\n\n Swift \n\n struct Camera\n\n extension Camera : AdditiveArithmetic, Animatable, Copyable, Equatable, Escapable, VectorArithmetic\n\n- `\n ``\n ``\n `\n\n ### [LatLngAltitude](/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n struct LatLngAltitude\n\n extension LatLngAltitude : Copyable, Equatable, Escapable, Hashable\n\n- `\n ``\n ``\n `\n\n ### [Map](/maps/documentation/maps-3d/ios-sdk/reference/Structs/Map)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n @MainActor\n @preconcurrency\n struct Map\n\n extension Map : MapAnimatable, Sendable, View\n\n- `\n ``\n ``\n `\n\n ### [Marker](/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker)\n\n `\n ` \n A 3D marker that can be placed on a map. \n\n Map(mode: .hybrid) {\n Marker(position: .init(latitude: 37.7749, longitude: -122.4194, altitude: 0))\n }\n\n #### Declaration\n\n Swift \n\n struct Marker\n\n extension Marker : Copyable, Equatable, Escapable, Hashable, Identifiable, MapContent\n\n- `\n ``\n ``\n `\n\n ### [Model](/maps/documentation/maps-3d/ios-sdk/reference/Structs/Model)\n\n `\n ` \n A 3D model that can be placed on a map. \n\n Map(mode: .hybrid) {\n Model(\n position: .init(latitude: 37.7749, longitude: -122.4194, altitude: 100),\n url: URL(string: \"path/to/your/model.glb\")!\n )\n }\n\n #### Declaration\n\n Swift \n\n struct Model\n\n extension Model : Copyable, Equatable, Escapable, Hashable, Identifiable, MapContent\n\n- `\n ``\n ``\n `\n\n ### [Orientation3D](/maps/documentation/maps-3d/ios-sdk/reference/Structs/Orientation3D)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n struct Orientation3D\n\n extension Orientation3D : Copyable, Equatable, Escapable, Hashable\n\n- `\n ``\n ``\n `\n\n ### [PlaceTapInfo](/maps/documentation/maps-3d/ios-sdk/reference/Structs/PlaceTapInfo)\n\n `\n ` \n Information about a place that was tapped. \n\n #### Declaration\n\n Swift \n\n struct PlaceTapInfo\n\n- `\n ``\n ``\n `\n\n ### [Polygon](/maps/documentation/maps-3d/ios-sdk/reference/Structs/Polygon)\n\n `\n ` \n A 3D polygon that can be placed on a map. \n\n Map(mode: .hybrid) {\n Polygon(\n outerCoordinates: [\n .init(latitude: 37.7749, longitude: -122.4194, altitude: 0),\n .init(latitude: 37.7740, longitude: -122.4184, altitude: 0),\n .init(latitude: 37.7750, longitude: -122.4174, altitude: 0),\n ]\n )\n }\n\n #### Declaration\n\n Swift \n\n struct Polygon\n\n extension Polygon : Copyable, Equatable, Escapable, Hashable, Identifiable, MapContent\n\n- `\n ``\n ``\n `\n\n ### [Polyline](/maps/documentation/maps-3d/ios-sdk/reference/Structs/Polyline)\n\n `\n ` \n A 3D polyline that can be placed on a map. \n\n Map(mode: .hybrid) {\n Polyline(coordinates: [\n .init(latitude: 37.7749, longitude: -122.4194, altitude: 100),\n .init(latitude: 37.7750, longitude: -122.4193, altitude: 100),\n .init(latitude: 37.7751, longitude: -122.4192, altitude: 100),\n ])\n }\n\n #### Declaration\n\n Swift \n\n struct Polyline\n\n extension Polyline : Copyable, Equatable, Escapable, Hashable, Identifiable, MapContent\n\n- `\n ``\n ``\n `\n\n ### [Vector3D](/maps/documentation/maps-3d/ios-sdk/reference/Structs/Vector3D)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n struct Vector3D\n\n extension Vector3D : Copyable, Equatable, Escapable, Hashable"]]