Crate martin_tile_utils
source ·Expand description
§martin-tile-utils
A library to help tile servers like Martin work with tile content.
§License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
§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]