Skip to main content

tile_count

Function tile_count 

Source
pub fn tile_count(bbox: [f64; 4], zoom: u8) -> u32
Expand description

Count how many tiles cover a bbox at a given zoom level.

Handles anti-meridian bboxes (xmin > xmax) correctly: tiles from [x0..max_tile] plus [0..x1] across the dateline.