# MarkerViewOptions


```
public class MarkerViewOptions implements Parcelable
```

<br />

*** ** * ** ***

A representation of a marker view object in a 3D map.

## Summary

| ### Public fields |
|---|---|
| `int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#altitudeMode()` |
| `int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#collisionBehavior()` |
| `int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#collisionPriority()` |
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/view/View.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#content()` |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#id()` |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#position()` |

| ### Public constructors |
|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#MarkerViewOptions()()` Default constructor for MarkerViewOptions. |

| ### Public methods |
|---|---|
| `int` | `@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#getAltitudeMode()()` The altitude mode of the marker. |
| `int` | `@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/CollisionBehavior https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#getCollisionBehavior()()` The collision behavior of the marker. |
| `int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#getCollisionPriority()()` The collision priority of the marker. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/view/View.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#getContent()()` Returns the custom content view. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#getId()()` The unique identifier of the marker. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#getPosition()()` The position of the marker. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#setAltitudeMode(int)(@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode int altitudeMode)` Sets the altitude mode of the marker. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#setCollisionBehavior(int)(@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/CollisionBehavior int collisionBehavior)` Sets the collision behavior of the marker. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#setCollisionPriority(int)(int collisionPriority)` Sets the collision priority of the marker. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#setContent(android.view.View)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/android/view/View.html content)` Sets the custom content view. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#setId(java.lang.String)(https://developer.android.com/reference/java/lang/String.html id)` Sets the unique identifier of the marker. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#setPosition(com.google.android.gms.maps3d.model.LatLngAltitude)(https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude position)` Sets the position of the marker. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerViewOptions#writeToParcel(android.os.Parcel,int)(https://developer.android.com/reference/android/os/Parcel.html dest, int flags)` |

### Inherited Constants

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `static final int` `https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR = 1` `static final int` `https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE = 1`

### Inherited methods

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `abstract int` `https://developer.android.com/reference/android/os/Parcelable.html#describeContents()()`

## Public fields

### altitudeMode

```
public int altitudeMode
```

### collisionBehavior

```
public int collisionBehavior
```

### collisionPriority

```
public int collisionPriority
```

### content

```
public @Nullable View content
```

### id

```
public String id
```

### position

```
public LatLngAltitude position
```

## Public constructors

### MarkerViewOptions

```
public MarkerViewOptions()
```

Default constructor for MarkerViewOptions.

## Public methods

### getAltitudeMode

```
@AltitudeMode
public int getAltitudeMode()
```

The altitude mode of the marker.

### getCollisionBehavior

```
@CollisionBehavior
public int getCollisionBehavior()
```

The collision behavior of the marker.

### getCollisionPriority

```
public int getCollisionPriority()
```

The collision priority of the marker.

### getContent

```
public @Nullable View getContent()
```

Returns the custom content view.

### getId

```
public String getId()
```

The unique identifier of the marker.

### getPosition

```
public LatLngAltitude getPosition()
```

The position of the marker.

### setAltitudeMode

```
public void setAltitudeMode(@AltitudeMode int altitudeMode)
```

Sets the altitude mode of the marker.

### setCollisionBehavior

```
public void setCollisionBehavior(@CollisionBehavior int collisionBehavior)
```

Sets the collision behavior of the marker.

### setCollisionPriority

```
public void setCollisionPriority(int collisionPriority)
```

Sets the collision priority of the marker.

### setContent

```
public void setContent(@Nullable View content)
```

Sets the custom content view.

### setId

```
public void setId(String id)
```

Sets the unique identifier of the marker.

### setPosition

```
public void setPosition(LatLngAltitude position)
```

Sets the position of the marker.

### writeToParcel

```
public void writeToParcel(Parcel dest, int flags)
```