diff options
author | Vladimir Agafonkin <agafonkin@gmail.com> | 2018-01-26 20:02:57 +0200 |
---|---|---|
committer | Vladimir Agafonkin <agafonkin@gmail.com> | 2018-01-26 20:02:57 +0200 |
commit | 8b62913b81e7ce6bc9f118f5b8318999b32e95ce (patch) | |
tree | e23673b8dcb72c00044b2760184e7ae712a34a0a | |
parent | 424680004a1a658acd8c5eb9e544b21f14ad04e4 (diff) | |
download | qtlocation-mapboxgl-8b62913b81e7ce6bc9f118f5b8318999b32e95ce.tar.gz |
try fixing android build again
-rw-r--r-- | platform/android/src/style/conversion/property_value.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/android/src/style/conversion/property_value.hpp b/platform/android/src/style/conversion/property_value.hpp index a58cf975a7..ea49355770 100644 --- a/platform/android/src/style/conversion/property_value.hpp +++ b/platform/android/src/style/conversion/property_value.hpp @@ -2,6 +2,7 @@ #include <mbgl/style/property_value.hpp> #include <mbgl/style/data_driven_property_value.hpp> +#include <mbgl/style/heatmap_color_property_value.hpp> #include "../../conversion/conversion.hpp" #include "../../conversion/constant.hpp" #include "types.hpp" @@ -70,6 +71,18 @@ struct Converter<jni::jobject*, mbgl::style::DataDrivenPropertyValue<T>> { } }; +/** + * Convert core heatmap color property values to java + */ +template <class T> +struct Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue<T>> { + + Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::HeatmapColorPropertyValue<T>& value) const { + PropertyValueEvaluator<T> evaluator(env); + return value.evaluate(evaluator); + } +}; + } // namespace conversion } // namespace android } // namespace mbgl |