Skip to content

Release TileJSON v3 support, bounds, and center structs

Latest
Compare
Choose a tag to compare
@nyurik nyurik released this 30 Oct 17:35
· 7 commits to main since this release

Note that this GitHub release catches up to what has been release to crates.io

ATTENTION: This release contains many breaking changes. See README for usage examples.

v0.3.2 (2022-10-30)

  • Add Bounds::from for [f64; 4], [f32; 4], [i32; 4]
  • Add Bounds::try_from now also supports &[f64], &[f32], &[i32] in addition to Vec<f64>

v0.3.1 (2022-05-29)

  • Add Bounds::MAX to create a maximum -180..180, -90..90 value.
  • Add Bounds::MAX_TILED to create a maximum allowed for vector tiles per spec.
  • Implement Add and AddAssign on Bounds

v0.3.0 (2022-05-25)

  • Migrate to Rust 2021 edition
  • update docs to match v3.0.0 spec
  • add fillzoom field per v3.0.0 spec
  • add Center and Bounds structs instead of arrays
    • both support FromStr trait
  • add VectorLayer struct and the vector_layer field
  • Remove builder pattern because TileJSON is writable
  • Add other fields for any unknown fields in root and vector layers
  • Restructure instantiation:
    • use tilejson!{ source } macro to create TileJSON objects, with any number of the optional field: value pairs.
    • use set_missing_defaults() to replace all missing values with their defaults (only if the spec defines it)
  • Remove id field because it is not supported by the spec

Relevant PRs

  • Implement v3 by @nyurik in #12
  • add Center and Bounds structs by @nyurik in #13
  • Refactor instantiation, vector layers by @nyurik in #14
  • Use tilejson! macro for instantiation, refactor by @nyurik in #16
  • Add Bounds MAX, MAX_TILED, Add, AddAssign by @nyurik in #19
  • Make Bounds::try_from() more generic by @nyurik in #18

New Contributors

Full Changelog: v0.2.4...v0.3.2