Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add heatmap color property #11220

Merged
merged 2 commits into from
Mar 1, 2018
Merged

Add heatmap color property #11220

merged 2 commits into from
Mar 1, 2018

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Feb 16, 2018

This PR adds heatmap color support to the android binding:

screen shot 2018-02-16 at 10 48 27

@ivovandongen to make this conversion possible I had to add support for the custom mbgl::style::HeatmapColorPropertyValue. Is property_value.hpp the correct place to do this?

Closes #11172

cc @mourner @anandthakker

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Feb 16, 2018
@tobrun tobrun added this to the android-v6.0.0 milestone Feb 16, 2018
@tobrun tobrun self-assigned this Feb 16, 2018
@tobrun
Copy link
Member Author

tobrun commented Feb 16, 2018

CI is failing on testHeatmapColorAsIntConstant with symbolicated trace:

********** Crash dump: **********
Build fingerprint: 'google/sailfish/sailfish:8.1.0/OPM1.171019.016/4503492:user/release-keys'
pid: 6241, tid: 6241, name: pboxsdk.testapp  >>> com.mapbox.mapboxsdk.testapp <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xff150ff0
Stack frame #00 pc 0017b09c  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:44
Stack frame #01 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #02 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #03 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #04 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #05 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #06 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #07 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #08 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #09 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #10 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #11 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #12 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #13 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #14 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #15 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #16 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #17 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #18 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #19 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #20 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #21 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #22 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #23 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #24 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #25 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #26 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #27 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #28 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #29 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #30 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #31 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #32 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #33 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #34 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #35 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #36 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #37 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #38 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #39 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #40 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #41 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #42 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #43 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #44 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #45 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #46 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #47 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #48 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #49 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #50 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #51 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #52 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #53 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #54 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #55 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #56 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #57 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #58 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #59 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #60 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #61 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45
Stack frame #62 pc 0017bc79  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Converter<jni::jobject*, mbgl::style::HeatmapColorPropertyValue, void>::operator()(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) const at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/property_value.hpp:81
Stack frame #63 pc 0017b0d1  /data/app/com.mapbox.mapboxsdk.testapp-xQ0CFCr0GAtpri76CVK0qg==/lib/arm/libmapbox-gl.so: Routine mbgl::android::conversion::Result<jni::jobject*> mbgl::android::conversion::convert<jni::jobject*, mbgl::style::HeatmapColorPropertyValue>(_JNIEnv&, mbgl::style::HeatmapColorPropertyValue const&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/style/layers/../conversion/../../conversion/conversion.hpp:45

update: for an expression value, the easiest way would be with #11156, for non expressions values we should be able to hook into the already existing PropertyValueEvaluator.

@tobrun
Copy link
Member Author

tobrun commented Feb 16, 2018

Thanks to 👀 from @ivovandongen, we don't need to support non expressions:

  // noop, needed for batch evaluation of paint property values to compile
    template <typename Evaluator>
    Color evaluate(const Evaluator&, TimePoint = {}) const { return {}; }

Going to remove the generated tests and will pick up getter support with #10721

jni::Object<jni::ObjectTag> HeatmapLayer::getHeatmapColor(jni::JNIEnv& env) {
using namespace mbgl::android::conversion;
Result<jni::jobject*> converted = convert<jni::jobject*>(env, layer.as<mbgl::style::HeatmapLayer>()->HeatmapLayer::getHeatmapColor());
return jni::Object<jni::ObjectTag>(*converted);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tobrun Note that in https://github.com/mapbox/mapbox-gl-native/pull/11074/files#diff-c48bbf0fbc172c9c08815dbfc04e4c66R78 (which I think is the iOS analogue to this), there's a check for whether layer.as<mbgl::style::HeatmapLayer>()->HeatmapLayer::getHeatmapColor() is undefined, and if so, it uses getDefaultHeatmapColor() instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for flagging, addressed with e5ce57b

@mourner
Copy link
Member

mourner commented Feb 23, 2018

Should this be targeted at the boba branch too?

@tobrun tobrun force-pushed the tvn-heatmap-color-property branch from e5ce57b to c745b12 Compare March 1, 2018 06:20
@tobrun tobrun changed the base branch from master to release-boba March 1, 2018 06:20
@tobrun tobrun merged commit a06ce19 into release-boba Mar 1, 2018
@tobrun tobrun deleted the tvn-heatmap-color-property branch March 1, 2018 11:42
@LukasPaczos LukasPaczos mentioned this pull request Mar 2, 2018
23 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants