diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2018-02-16 13:32:58 +0100 |
---|---|---|
committer | Tobrun <tobrun.van.nuland@gmail.com> | 2018-02-16 13:32:58 +0100 |
commit | 984912371be710e68ecfcff5c825cd98f0d74e25 (patch) | |
tree | 7114efebb3bd9c72a4ceac03644f34d52428c706 | |
parent | e7e1390cc93917223745b866a2611bf6a409fa5f (diff) | |
download | qtlocation-mapboxgl-upstream/tvn-try-out.tar.gz |
-rw-r--r-- | platform/android/src/style/conversion/property_value.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/android/src/style/conversion/property_value.hpp b/platform/android/src/style/conversion/property_value.hpp index c35ecde878..094677fbbb 100644 --- a/platform/android/src/style/conversion/property_value.hpp +++ b/platform/android/src/style/conversion/property_value.hpp @@ -77,8 +77,9 @@ struct Converter<jni::jobject*, mbgl::style::DataDrivenPropertyValue<T>> { template <> struct Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue> { - Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::HeatmapColorPropertyValue& value) const { - return convert<jni::jobject*>(env, value); + Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::HeatmapColorPropertyValue value) const { + PropertyValueEvaluator<mbgl::Color> evaluator(env); + return value.evaluate(evaluator); } }; |