Join us for our next
Google Maps Platform Developer Community Day in San Francisco in December!
Apply now to attend.
Add a marker to a map
Stay organized with collections
Save and categorize content based on your preferences.
You can use markers to draw a user's attention to a location on a map.
The following code sample demonstrates how to use the
Marker3D
struct to add a marker to a 3D map.
Marker3D(
position: .init(
latitude: 37.8044862,
longitude: -122.4301493
)
)
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 2026-10-20 UTC.
[null,null,["Last updated 2026-10-20 UTC."],[],[]]