From 2dea1d1564423c22d44663d458ac7575a331d52f Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 25 Apr 2016 12:23:40 -0700 Subject: [PATCH] Fix hardwired layer version number --- mvt.cc | 6 +++--- tile.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mvt.cc b/mvt.cc index 71e01e1..1af00d9 100644 --- a/mvt.cc +++ b/mvt.cc @@ -254,9 +254,9 @@ std::string mvt_tile::encode() { std::string layer_string; protozero::pbf_writer layer_writer(layer_string); - layer_writer.add_uint32(15, 2); /* version */ - layer_writer.add_string(1, layers[i].name); /* name */ - layer_writer.add_uint32(5, layers[i].extent); /* extent */ + layer_writer.add_uint32(15, layers[i].version); /* version */ + layer_writer.add_string(1, layers[i].name); /* name */ + layer_writer.add_uint32(5, layers[i].extent); /* extent */ for (size_t j = 0; j < layers[i].keys.size(); j++) { layer_writer.add_string(3, layers[i].keys[j]); /* key */ diff --git a/tile.cc b/tile.cc index 798bf77..0c2f77a 100644 --- a/tile.cc +++ b/tile.cc @@ -215,7 +215,7 @@ mvt_tile create_tile(char **layernames, int line_detail, std::vector