# Map3DInitConfig


```
public final class Map3DInitConfig implements Parcelable
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `final @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/Map3DInitConfig` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig#copy(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,kotlin.String,kotlin.String)( 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, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html language, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html region )` Creates a copy of this `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig` with modified properties. |
| `static final @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/Map3DInitConfig` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig#create(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,kotlin.String,kotlin.String)( 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 https://developer.android.com/reference/java/lang/Integer.html mapMode, https://developer.android.com/reference/java/lang/String.html mapId, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html language, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html region )` Factory method with default values. |
| `static final @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/Map3DInitConfig` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig#fromAttributeSet(android.content.Context,android.util.AttributeSet)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` Creates a `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig` from an `https://developer.android.com/reference/android/util/AttributeSet.html`. |
| `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/Map3DInitConfig#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/Map3DInitConfig#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/Map3DInitConfig#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/Map3DInitConfig#getCenterLng()()` The longitude 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/Map3DInitConfig#getHeading()()` The heading of the camera in degrees. |
| `final @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/Map3DInitConfig#getLanguage()()` The language of the map's {@link Locale}. |
| `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/Map3DInitConfig#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/Map3DInitConfig#getMapMode()()` The mode of the map. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig#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/Map3DInitConfig#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/Map3DInitConfig#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/Map3DInitConfig#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/Map3DInitConfig#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/Map3DInitConfig#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/Map3DInitConfig#getRange()()` The range of the camera in meters. |
| `final @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/Map3DInitConfig#getRegion()()` The region of the map's {@link Locale}. |
| `final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig#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/Map3DInitConfig#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/Map3DInitConfig#toString()()` |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig#writeToParcel(android.os.Parcel,kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/Parcel.html out, int flags)` |

| ### 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/Map3DInitConfig#(com.google.android.gms.maps3d.Map3DInitConfig).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/Map3DInitConfig receiver)` Validates a specified `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig` objects. |

## Public methods

### copy

```
public final @NonNull Map3DInitConfig copy(
    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,
    @NonNull String language,
    @NonNull String region
)
```

Creates a copy of this `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig` with modified properties.

| Returns |
|---|---|
| `@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/Map3DInitConfig` | A new `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig` with the same properties as this one, except for the ones specified as parameters. |

### create

```
public static final @NonNull Map3DInitConfig create(
    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 Integer mapMode,
    String mapId,
    @NonNull String language,
    @NonNull String region
)
```

Factory method with default values. This should be used to create Map3DInitConfig.

| Parameters |
|---|---|
| `@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Map3DMode https://developer.android.com/reference/java/lang/Integer.html mapMode` | The mode of the map. If null, it is considered unspecified. A valid map mode must be specified for the map to load successfully. |

### fromAttributeSet

```
public static final @NonNull Map3DInitConfig fromAttributeSet(@NonNull Context context, AttributeSet attrs)
```

Creates a `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig` from an `https://developer.android.com/reference/android/util/AttributeSet.html`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html context` | The `https://developer.android.com/reference/android/content/Context.html` to read the options from. |
| `https://developer.android.com/reference/android/util/AttributeSet.html attrs` | The `https://developer.android.com/reference/android/util/AttributeSet.html` to read the options from. |

| Returns |
|---|---|
| `@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/Map3DInitConfig` | The `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig` created from the `https://developer.android.com/reference/android/util/AttributeSet.html`. |

### 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.

### getHeading

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

The heading of the camera in degrees.

### getLanguage

```
public final @NonNull String getLanguage()
```

The language of the map's {@link Locale}.

### getMapId

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

The map ID of the map.

### getMapMode

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

The mode of the map. This parameter is required.

### 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.

### getRegion

```
public final @NonNull String getRegion()
```

The region of the map's {@link Locale}.

### 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()
```

### writeToParcel

```
public void writeToParcel(@NonNull Parcel out, int flags)
```

## Extension functions

### ValidatorsKt.validate

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

Validates a specified `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/Map3DInitConfig` 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/Map3DInitConfig` is not valid. |