diff options
author | Vladimir Agafonkin <agafonkin@gmail.com> | 2018-01-26 20:02:57 +0200 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-02-06 08:57:42 -0800 |
commit | aa759daa30026715282a464c95325eaa68959575 (patch) | |
tree | 2a6271da4391e927b8e6c37fd161e191a9f10bb1 | |
parent | affdca4b76fd7aed39e029117bd3e345e67803ba (diff) | |
download | qtlocation-mapboxgl-aa759daa30026715282a464c95325eaa68959575.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 |