-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
CI is failing on
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 |
Thanks to 👀 from @ivovandongen, we don't need to support non expressions:
Going to remove the generated tests and will pick up getter support with #10721 |
e7e1390
to
366051e
Compare
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Should this be targeted at the boba branch too? |
e5ce57b
to
c745b12
Compare
This PR adds heatmap color support to the android binding:
@ivovandongen to make this conversion possible I had to add support for the custom
mbgl::style::HeatmapColorPropertyValue
. Isproperty_value.hpp
the correct place to do this?Closes #11172
cc @mourner @anandthakker