Projection

class Projection(name: ProjectionName) : StyleContract.StyleProjectionExtension

A style's projection property sets which projection a map is rendered in. Mercator and Globe projections are supported.

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:

  • custom

  • location indicator

See also

Parameters

name

from ProjectionName enum

Constructors

Projection
Link copied to clipboard
fun Projection(name: ProjectionName)
from ProjectionName enum

Functions

bindTo
Link copied to clipboard
open override fun bindTo(delegate: StyleInterface)
Bind projection to the map controller.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

name
Link copied to clipboard
val name: ProjectionName
from ProjectionName enum