Select platform: [Android](https://developers.google.com/maps/documentation/maps-3d/android-sdk/add-a-marker.md.txt "View this page for the Android platform docs.") [iOS](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/add-a-marker.md.txt "View this page for the iOS platform docs.") [JavaScript](https://developers.google.com/maps/documentation/javascript/3d/marker-add.md.txt "View this page for the JavaScript platform docs.")

<br />

You can use markers to draw a user's attention to a location on a map.

![Basic markers on a 3D map](https://developers.google.com/static/maps/documentation/maps-3d/ios-sdk/images/basic-markers.png)

The following code sample demonstrates how to use the
[`Marker3D`](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker3D.md.txt)
struct to add a marker to a 3D map.

```swift
  Marker3D(
    position: .init(
      latitude: 37.8044862,
      longitude: -122.4301493
    )
  )
```

> [!TIP]
> **Tip:** For more information on working with markers, see:

- [Configure marker altitude](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/configure-marker-altitude.md.txt)
- [Configure marker collision behavior](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/configure-marker-collision-behavior.md.txt)