project

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

point

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

zoomScale

The current zoom factor 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.

abstract fun project(point: Point, zoomScale: Double): MercatorCoordinate