getLatPixelInTile

fun getLatPixelInTile(lat: Double, zoom: Int, tileSize: Int = 256): Double

Calculates the Y pixel coordinate of a given latitude within its tile.

Return

The Y pixel coordinate (0 to tileSize-1) within the tile.

Parameters

lat

The latitude in degrees.

zoom

The map zoom level.

tileSize

The size of one side of a map tile in pixels (e.g., 256).