Function bbox_to_xyz_bounds

Source
pub fn bbox_to_xyz_bounds(
    bbox: (f64, f64, f64, f64),
    zoom: u8,
    tms_style: Option<bool>,
    source: Option<Source>,
    tile_size: Option<f64>,
) -> (f64, f64, f64, f64)
Expand description

Convert a bbox of the form [w, s, e, n] to a tile’s bounding box in the form of { minX, maxX, minY, maxY } The bbox can be in lon-lat (WGS84) or WebMercator (900913) The default expectation is in WebMercator (900913) returns the tile’s bounding box