# Map3DOptions

# Map3DOptions


```
@Parcelize
public final class Map3DOptions implements Parcelable
```

<br />

*** ** * ** ***

Base class to configure the Map3dView and related classes during their initialization.

## Summary

| ### Nested types |
|---|
| `public static class https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions.Companion` |

| ### Public constructors |
|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#Map3DOptions(kotlin.Boolean,kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double,com.google.android.gms.maps3d.model.LatLngBounds,kotlin.Int,kotlin.String)( boolean defaultUiDisabled, double centerLat, double centerLng, double centerAlt, double heading, double tilt, double roll, double range, double minAltitude, double maxAltitude, double minHeading, double maxHeading, double minTilt, double maxTilt, https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngBounds bounds, @https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Map3DMode int mapMode, https://developer.android.com/reference/java/lang/String.html mapId )` |

| ### Public methods |
|---|---|
| `final https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngBounds` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getBounds()()` The bounds of the map in LatLng coordinates. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getCenterAlt()()` The altitude of the center of the map in meters. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getCenterLat()()` The latitude of the center of the map in degrees. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getCenterLng()()` The longitude of the center of the map in degrees. |
| `final boolean` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getDefaultUiDisabled()()` Whether default UI is disabled. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getHeading()()` The heading of the camera in degrees. |
| `final 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/Map3DOptions#getMapId()()` The map ID of the map. |
| `final int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getMapMode()()` The mode of the map. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getMaxAltitude()()` The maximum altitude of the camera in meters. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getMaxHeading()()` The maximum heading of the camera in degrees. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getMaxTilt()()` The maximum tilt of the camera in degrees. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getMinAltitude()()` The minimum altitude of the camera in meters. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getMinHeading()()` The minimum heading of the camera in degrees. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getMinTilt()()` The minimum tilt of the camera in degrees. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getRange()()` The range of the camera in meters. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getRoll()()` The roll of the camera in degrees. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#getTilt()()` The tilt of the camera in degrees. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html 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/Map3DOptions#toString()()` |

| ### Extension functions |
|---|---|
| `final void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/ValidatorsKt.https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions#(com.google.android.gms.maps3d.Map3DOptions).validate()(@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/Map3DOptions receiver)` Validates a specified `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions` objects. |

| ### 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()()` | | `abstract void` | `https://developer.android.com/reference/android/os/Parcelable.html#writeToParcel(android.os.Parcel, kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/Parcel.html p0, int p1)` | |

## Public constructors

### Map3DOptions

```
public Map3DOptions(
    boolean defaultUiDisabled,
    double centerLat,
    double centerLng,
    double centerAlt,
    double heading,
    double tilt,
    double roll,
    double range,
    double minAltitude,
    double maxAltitude,
    double minHeading,
    double maxHeading,
    double minTilt,
    double maxTilt,
    LatLngBounds bounds,
    @Map3DMode int mapMode,
    String mapId
)
```

## Public methods

### getBounds

```
public final LatLngBounds getBounds()
```

The bounds of the map in LatLng coordinates.

### getCenterAlt

```
public final double getCenterAlt()
```

The altitude of the center of the map in meters.

### getCenterLat

```
public final double getCenterLat()
```

The latitude of the center of the map in degrees.

### getCenterLng

```
public final double getCenterLng()
```

The longitude of the center of the map in degrees.

### getDefaultUiDisabled

```
public final boolean getDefaultUiDisabled()
```

Whether default UI is disabled.

### getHeading

```
public final double getHeading()
```

The heading of the camera in degrees.

### getMapId

```
public final String getMapId()
```

The map ID of the map.

### getMapMode

```
public final int getMapMode()
```

The mode of the map.

### getMaxAltitude

```
public final double getMaxAltitude()
```

The maximum altitude of the camera in meters.

### getMaxHeading

```
public final double getMaxHeading()
```

The maximum heading of the camera in degrees.

### getMaxTilt

```
public final double getMaxTilt()
```

The maximum tilt of the camera in degrees.

### getMinAltitude

```
public final double getMinAltitude()
```

The minimum altitude of the camera in meters.

### getMinHeading

```
public final double getMinHeading()
```

The minimum heading of the camera in degrees.

### getMinTilt

```
public final double getMinTilt()
```

The minimum tilt of the camera in degrees.

### getRange

```
public final double getRange()
```

The range of the camera in meters.

### getRoll

```
public final double getRoll()
```

The roll of the camera in degrees.

### getTilt

```
public final double getTilt()
```

The tilt of the camera in degrees.

### toString

```
public @NonNull String toString()
```

## Extension functions

### ValidatorsKt.validate

```
public final void ValidatorsKt.validate(@NonNull Map3DOptions receiver)
```

Validates a specified `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions` objects.

| Throws |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html` | If the `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DOptions` is not valid. |