Support feature IDs for decoding

This commit is contained in:
Eric Fischer
2016-07-15 13:58:15 -07:00
parent a1f8564631
commit 2bc1b9bd91
3 changed files with 17 additions and 0 deletions
+5
View File
@@ -102,6 +102,11 @@ void handle(std::string message, int z, unsigned x, unsigned y, int describe) {
within = 1;
printf("{ \"type\": \"Feature\"");
if (feat.has_id) {
printf(", \"id\": %llu", feat.id);
}
printf(", \"properties\": { ");
for (size_t t = 0; t + 1 < feat.tags.size(); t += 2) {