Track zoom truncation in the strategies list in the tileset metadata

This commit is contained in:
Erica Fischer
2024-08-05 16:56:01 -07:00
parent 3e8c8e2a6d
commit b329489dee
6 changed files with 19 additions and 2 deletions
+8
View File
@@ -444,6 +444,14 @@ std::string stringify_strategies(std::vector<strategy> const &strategies) {
any = true;
}
if (strategies[i].truncated_zooms > 0) {
state.nospace = true;
state.json_write_string("truncated_zooms");
state.nospace = true;
state.json_write_number(strategies[i].truncated_zooms);
any = true;
}
state.nospace = true;
state.json_end_hash();
}