Add a marker to a map

Select platform: Android iOS JavaScript

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

Basic markers on a 3D 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
    )
  )