Function martin_tile_utils::tile_index
source · pub fn tile_index(lng: f64, lat: f64, zoom: u8) -> (u32, u32)
Expand description
Convert longitude and latitude to a tile (x,y) coordinates for a given zoom
pub fn tile_index(lng: f64, lat: f64, zoom: u8) -> (u32, u32)
Convert longitude and latitude to a tile (x,y) coordinates for a given zoom