Skip to main content

decode_tile_id

Function decode_tile_id 

Source
pub const fn decode_tile_id(key: u64) -> (u8, u64)
Expand description

Decode the zoom level and tile ID from a sort key.

Returns (zoom, tile_id) where tile_id is the row-major linear ID. Use tile_id_to_xy() to convert back to (x, y).