project

open fun project(coordinate: Point, zoomScale: Double): MercatorCoordinate

Calculate a point on the map in Mercator Projection for a given coordinate at the specified zoom scale.

Return

Returns a point on the map in Mercator projection.

Parameters

coordinate

The longitude-latitude pair for which to return the value.

zoomScale

The current zoom factor (2 ^ Zoom level) applied on the map, is used to calculate the world size as tileSize * zoomScale (i.e., 512 * 2 ^ Zoom level) where tileSize is the width of a tile in pixels.