Map3DOptions

@Parcelize
public final class Map3DOptions implements Parcelable


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

Summary

Nested types

public static class Map3DOptions.Companion

Public constructors

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

final LatLngBounds

The bounds of the map in LatLng coordinates.

final double

The altitude of the center of the map in meters.

final double

The latitude of the center of the map in degrees.

final double

The longitude of the center of the map in degrees.

final boolean

Whether default UI is disabled.

final double

The heading of the camera in degrees.

final String

The map ID of the map.

final int

The mode of the map.

final double

The maximum altitude of the camera in meters.

final double

The maximum heading of the camera in degrees.

final double

The maximum tilt of the camera in degrees.

final double

The minimum altitude of the camera in meters.

final double

The minimum heading of the camera in degrees.

final double

The minimum tilt of the camera in degrees.

final double

The range of the camera in meters.

final double

The roll of the camera in degrees.

final double

The tilt of the camera in degrees.

@NonNull String

Extension functions

final void

Validates a specified Map3DOptions objects.

Inherited methods

From android.os.Parcelable
abstract int
abstract void
writeToParcel(@NonNull Parcel 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 Map3DOptions objects.

Throws
java.lang.IllegalArgumentException

If the Map3DOptions is not valid.