Skip to content

Commit

Permalink
add tilejson property according to spec, resolves #269 (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvgenuchten authored Jan 18, 2022
1 parent dcc9dc7 commit a4697b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t-rex-service/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ impl MvtService {
"description": tileset,
"attribution": ts.attribution(),
"format": "pbf",
"version": "2.0.0",
"version": "2.0.0", //edition of the software, keep 2.0 for backwards compat
"tilejson": "2.2.0", //edition of the tilejson standard adopted
"scheme": "xyz",
"bounds": [ext.minx,
ext.miny,
Expand Down Expand Up @@ -502,6 +503,7 @@ fn test_mbtiles_metadata() {
"name": "osm",
"scheme": "xyz",
"srs": "EPSG:4326",
"tilejson": "2.2.0",
"version": "2.0.0"
}"#;
assert_eq!(metadata, expected);
Expand Down

0 comments on commit a4697b8

Please sign in to comment.