tilemath 0.3.0

This is a utility crate for working with XYZ and TMS map tiles. It provides tile coordinate conversions and zoom level utilities.
Documentation
1
2
3
4
5
/// Equatorial radius of the Earth in meters (WGS 84)
pub const EARTH_RADIUS: f64 = 6_378_137.0;

/// Web mercator extent
pub const WEB_MERCATOR_EXTENT: f64 = std::f64::consts::PI * EARTH_RADIUS;