# MarkerView


```
public class MarkerView implements Anchorable
```

<br />

*** ** * ** ***

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

Developers are fully responsible for the accessibility of the content within their custom `https://developer.android.com/reference/android/view/View.html`.

## Summary

| ### 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/MarkerView#getAltitudeMode()()` Returns the altitude mode of the marker view. |
| `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/MarkerView#getCollisionBehavior()()` Returns the collision behavior of the marker view. |
| `int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerView#getCollisionPriority()()` Returns the collision priority of the marker 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/MarkerView#getId()()` Returns the id of the marker view. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html 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/MarkerView#getPosition()()` Returns the position of the marker view. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerView#remove()()` Removes this marker view from the 3D map. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerView#setAltitudeMode(int)(@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode int value)` Sets the altitude mode of the marker view. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerView#setCollisionBehavior(int)(@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/CollisionBehavior int value)` Sets the collision behavior of the marker view. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerView#setCollisionPriority(int)(int value)` Sets the collision priority of the marker view. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/MarkerView#setPosition(com.google.android.gms.maps3d.model.LatLngAltitude)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude value)` Sets the position of the marker view. |

## Public methods

### getAltitudeMode

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

Returns the altitude mode of the marker view.

### getCollisionBehavior

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

Returns the collision behavior of the marker view.

### getCollisionPriority

```
public int getCollisionPriority()
```

Returns the collision priority of the marker view.

| Returns |
|---|---|
| `int` | The collision priority of the marker view. |

### getId

```
public String getId()
```

Returns the id of the marker view.

### getPosition

```
public @NonNull LatLngAltitude getPosition()
```

Returns the position of the marker view.

### remove

```
public void remove()
```

Removes this marker view from the 3D map.

### setAltitudeMode

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

Sets the altitude mode of the marker view.

### setCollisionBehavior

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

Sets the collision behavior of the marker view.

### setCollisionPriority

```
public void setCollisionPriority(int value)
```

Sets the collision priority of the marker view.

| Parameters |
|---|---|
| `int value` | The collision priority to set. |

### setPosition

```
public void setPosition(@NonNull LatLngAltitude value)
```

Sets the position of the marker view.