Skip to content

Releases: georust/tilejson

Release TileJSON v3 support, bounds, and center structs

30 Oct 17:35
Compare
Choose a tag to compare

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

v0.2.4

11 Oct 10:39
v0.2.4
f19c57d
Compare
Choose a tag to compare

What's Changed

  • fix: use String instead of &'static str fpr tilejson field by @stepankuzmin in #7

Full Changelog: v0.2.3...v0.2.4

v0.2.3

10 Oct 12:13
v0.2.3
c800378
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.2...v0.2.3

v0.2.2

12 Sep 08:49
286a00c
Compare
Choose a tag to compare

v0.2.2

Full Changelog