MapProjection

Describes the projection used to render the map.

Mapbox map supports Mercator and Globe projections.

sealed class MapProjection

Types

Companion
Link copied to clipboard

Static methods and variables.

object Companion
Globe
Link copied to clipboard

Globe projection is a custom map projection mode for rendering the map wrapped around a full 3D globe. Conceptually it is the undistorted and unskewed “ground truth” view of the map that preserves true proportions between different areas of the map.

Some layers are not supported when map is in Globe projection:

  • circle

  • custom

  • fill extrusion

  • heatmap

  • location indicator

If Globe projection is set it will be switched automatically to Mercator projection when passing TRANSITION_ZOOM_LEVEL during zooming in.

object Globe : MapProjection
Mercator
Link copied to clipboard

Mercator projection.

object Mercator : MapProjection

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard

Custom toString method.

open override fun toString(): String

Inheritors

MapProjection
Link copied to clipboard
MapProjection
Link copied to clipboard