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 Marker
struct to add a basic marker to a 3D map.
Swift
Marker(
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 2025-09-12 UTC.
[null,null,["Last updated 2025-09-12 UTC."],[],[],null,[]]