MTNavigable

interface MTNavigable

Defines methods for navigating the map.

Inheritors

Functions

abstract fun easeTo(cameraOptions: MTCameraOptions)

Changes any combination of center, zoom, bearing and pitch with an animated transition between old and new values.

abstract fun flyTo(cameraOptions: MTCameraOptions, flyToOptions: MTFlyToOptions?)

Changes any combination of center, zoom, bearing, and pitch, animating the transition along a curve that evokes flight.

abstract suspend fun getBearing(): Double

Returns the map's current bearing.

abstract suspend fun getCenter(): LngLat

Returns the map's current center.

abstract suspend fun getRoll(): Double

Returns the map's current roll.

abstract fun jumpTo(cameraOptions: MTCameraOptions)

Changes any combination of center, zoom, bearing, and pitch, without an animated transition

abstract fun panBy(offset: MTPoint)

Pans the map by the specified offset.

abstract fun panTo(coordinates: LngLat)

Pans the map to the specified location with an animated transition.

abstract suspend fun project(coordinates: LngLat): MTPoint

Projects geographical coordinates to a point on the container.

abstract fun setBearing(bearing: Double)

Sets bearing of the map.

abstract fun setCenter(center: LngLat)

Sets the geographical center of the map.

abstract fun setCenterElevation(elevation: Double)

Sets the elevation of the map's center point, in meters above sea level.

abstract fun setIsCenterClampedToGround(isCenterClampedToGround: Boolean)

Sets the center clamped to the ground.

abstract fun setPadding(padding: MTPaddingOptions)

Sets the padding in pixels around the viewport.

abstract fun setRoll(roll: Double)

Sets the map's roll angle.