# AltitudeMode

# AltitudeMode


```
@Retention(value = RetentionPolicy.SOURCE)
@IntDef(value = [AltitudeMode.ABSOLUTE, AltitudeMode.CLAMP_TO_GROUND, AltitudeMode.RELATIVE_TO_GROUND, AltitudeMode.RELATIVE_TO_MESH])
public annotation AltitudeMode
```

<br />

*** ** * ** ***

Enumeration of possible altitude modes: absolute, relative to ground, relative to mesh, or clamped to ground.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode#ABSOLUTE() = 1` Absolute altitude mode. |
| `static final int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode#CLAMP_TO_GROUND() = 2` Clamped to ground altitude mode. |
| `static final int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode#RELATIVE_TO_GROUND() = 3` Relative to ground altitude mode. |
| `static final int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode#RELATIVE_TO_MESH() = 4` Relative to mesh altitude mode. |

## Constants

### ABSOLUTE

```
public static final int ABSOLUTE = 1
```

Absolute altitude mode. The altitude value is used directly. This is the default altitude mode.

### CLAMP_TO_GROUND

```
public static final int CLAMP_TO_GROUND = 2
```

Clamped to ground altitude mode. The altitude value is clamped to the ground. This is the default altitude mode for markers.

### RELATIVE_TO_GROUND

```
public static final int RELATIVE_TO_GROUND = 3
```

Relative to ground altitude mode. The altitude value is relative to the ground. This is the default altitude mode for models and polylines.

### RELATIVE_TO_MESH

```
public static final int RELATIVE_TO_MESH = 4
```

Relative to mesh altitude mode. The altitude value is relative to the mesh. This is the default altitude mode for polygons.