MapProjectionDelegate

interface MapProjectionDelegate

Definition of a map projection delegate.

Functions

coordinateForProjectedMeters
Link copied to clipboard
abstract fun coordinateForProjectedMeters(projectedMeters: ProjectedMeters): Point
Calculate a longitude-latitude pair for a Spherical Mercator projected meters.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getMapProjection
Link copied to clipboard
abstract fun getMapProjection(): MapProjection
Get current map projection for the map.
getMetersPerPixelAtLatitude
Link copied to clipboard
abstract fun getMetersPerPixelAtLatitude(latitude: Double): Double
Calculate distance spanned by one pixel at the specified latitude at current zoom level.
abstract fun getMetersPerPixelAtLatitude(latitude: Double, zoom: Double): Double
Calculate distance spanned by one pixel at the specified latitude and zoom level.
hashCode
Link copied to clipboard
open fun hashCode(): Int
project
Link copied to clipboard
abstract fun project(point: Point, zoomScale: Double): MercatorCoordinate
Calculate a point on the map in Mercator Projection for a given coordinate at the specified zoom scale.
projectedMetersForCoordinate
Link copied to clipboard
abstract fun projectedMetersForCoordinate(point: Point): ProjectedMeters
Calculate Spherical Mercator ProjectedMeters coordinates.
setMapProjection
Link copied to clipboard
abstract fun setMapProjection(mapProjection: MapProjection)
Set current map projection for the map.
toString
Link copied to clipboard
open fun toString(): String
unproject
Link copied to clipboard
abstract fun unproject(coordinate: MercatorCoordinate, zoomScale: Double): Point
Calculate a coordinate for a given point on the map in Mercator Projection.

Inheritors

MapboxMap
Link copied to clipboard