Expand description

§martin-tile-utils

docs.rs docs GitHub crates.io version CI build

A library to help tile servers like Martin work with tile content.

§License

Licensed under either of

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Structs§

Enums§

Constants§

Functions§

  • Convert bounding box to a tile box (min_x, min_y, max_x, max_y) for a given zoom
  • Compute precision of a zoom level, i.e. how many decimal digits of the longitude and latitude are relevant
  • Convert longitude and latitude to a tile (x,y) coordinates for a given zoom
  • transform WGS84 to WebMercator
  • Convert min/max XYZ tile coordinates to a bounding box values. The result is [min_lng, min_lat, max_lng, max_lat]