Support for icon-text-fit, icon-text-fit-padding (#5334)

* Add support for icon-text-fit

* Port unit tests for getIconQuads() from js => cpp

* Add support for padding in all 4 directions.

* Update all hashes post-merge
This commit is contained in:
Young Hahn
2016-06-15 17:13:31 -04:00
committed by GitHub
parent a020e535ca
commit 199ea2a82a
16 changed files with 383 additions and 9 deletions

View File

@@ -78,6 +78,14 @@ struct ValueConverter<std::array<float, 2>> {
}
};
template <>
struct ValueConverter<std::array<float, 4>> {
mbgl::optional<mbgl::style::PropertyValue<std::array<float, 4>>> operator()(const v8::Local<v8::Value>& value) const {
(void)value;
return {};
}
};
template <>
struct ValueConverter<std::vector<float>> {
mbgl::optional<mbgl::style::PropertyValue<std::vector<float>>> operator()(const v8::Local<v8::Value>& value) const {