Projection

external class Projection

An object with methods for projecting geographical coordinates of the world onto a flat surface (and back).

https://leafletjs.com/SlavaUkraini/reference.html#projection

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The bounds (specified in CRS units) where the projection is valid

Functions

Link copied to clipboard
fun project(latlng: LatLng): Point

Projects geographical coordinates into a 2D point. Only accepts actual LatLng instances, not arrays.

Link copied to clipboard
fun unproject(point: Point): LatLng

The inverse of project. Projects a 2D point into a geographical location. Only accepts actual Point instances, not arrays.