parse label shaping

This commit is contained in:
Konstantin Käfer
2014-03-11 15:16:29 +01:00
parent 31d3c6339c
commit a37dcedc41
2 changed files with 82 additions and 4 deletions

View File

@@ -67,6 +67,19 @@ private:
std::set<uint32_t> values;
};
class VectorTilePlacement {
public:
VectorTilePlacement(uint32_t face, uint32_t glyph, uint32_t x, uint32_t y);
uint32_t face = 0;
uint32_t glyph = 0;
uint32_t x = 0;
uint32_t y = 0;
};
std::ostream& operator<<(std::ostream&, const VectorTilePlacement& placement);
class VectorTileLayer {
public:
VectorTileLayer(pbf data);
@@ -76,6 +89,8 @@ public:
uint32_t extent = 4096;
std::vector<std::string> keys;
std::vector<Value> values;
std::vector<std::string> faces;
std::map<std::string, std::map<Value, std::vector<VectorTilePlacement>>> shaping;
};
class VectorTileGlyph {