[core] Add support for data-driven styling

This commit is contained in:
John Firebaugh
2016-10-28 16:39:50 -07:00
parent 6a6bddb453
commit 141e995806
149 changed files with 3464 additions and 1288 deletions

View File

@@ -241,10 +241,14 @@ std::vector<FontStack> Parser::fontStacks() const {
result.insert({"Open Sans Regular", "Arial Unicode MS Regular"});
} else if (textFont.isConstant()) {
result.insert(textFont.asConstant());
} else if (textFont.isFunction()) {
for (const auto& stop : textFont.asFunction().getStops()) {
result.insert(stop.second);
}
} else if (textFont.isCameraFunction()) {
textFont.asCameraFunction().stops.match(
[&] (const auto& stops) {
for (const auto& stop : stops.stops) {
result.insert(stop.second);
}
}
);
}
}
}