toggle menu
mapsglmaps
androidJvm
switch theme
search in API
mapsglmaps
/
com.xweather.mapsgl.layers.tile
/
TileConversions
/
Companion
Companion
object
Companion
Members
Functions
get
Lat
Pixel
In
Tile
Link copied to clipboard
fun
getLatPixelInTile
(
lat
:
Double
,
zoom
:
Int
,
tileSize
:
Int
=
256
)
:
Double
Calculates the Y pixel coordinate of a given latitude within its tile.
get
Lon
Pixel
In
Tile
Link copied to clipboard
fun
getLonPixelInTile
(
lon
:
Double
,
zoom
:
Int
,
tileSize
:
Int
=
256
)
:
Double
lat
To
Tile
Link copied to clipboard
fun
latToTile
(
lat
:
Double
,
zoom
:
Int
)
:
Int
lon
To
Tile
Non
Normalized
Link copied to clipboard
fun
lonToTileNonNormalized
(
lon
:
Double
,
zoom
:
Int
)
:
Int
lon
To
Tile
Normalized
Link copied to clipboard
fun
lonToTileNormalized
(
lon
:
Double
,
zoom
:
Int
,
unWrapped
:
Boolean
=
false
)
:
Int