summaryrefslogtreecommitdiff
path: root/platform/android/src/native_map_view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/native_map_view.cpp')
-rwxr-xr-xplatform/android/src/native_map_view.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/android/src/native_map_view.cpp b/platform/android/src/native_map_view.cpp
index d859d929d3..bb37f18095 100755
--- a/platform/android/src/native_map_view.cpp
+++ b/platform/android/src/native_map_view.cpp
@@ -771,7 +771,8 @@ jni::Array<jlong> NativeMapView::queryPointAnnotations(JNIEnv& env, jni::Object<
jni::Array<jni::Object<geojson::Feature>> NativeMapView::queryRenderedFeaturesForPoint(JNIEnv& env, jni::jfloat x, jni::jfloat y,
jni::Array<jni::String> layerIds,
- jni::Array<jni::Object<>> jfilter) {
+ jni::Array<jni::Object<>> jfilter,
+ jni::jboolean jwithGeometry) {
using namespace mbgl::android::conversion;
using namespace mbgl::android::geojson;
@@ -781,9 +782,11 @@ jni::Array<jni::Object<geojson::Feature>> NativeMapView::queryRenderedFeaturesFo
}
mapbox::geometry::point<double> point = {x, y};
+ bool withGeometry = jwithGeometry;
+
return *convert<jni::Array<jni::Object<Feature>>, std::vector<mbgl::Feature>>(
env,
- rendererFrontend->queryRenderedFeatures(point, { layers, toFilter(env, jfilter) }));
+ rendererFrontend->queryRenderedFeatures(point, { layers, toFilter(env, jfilter), withGeometry}));
}
jni::Array<jni::Object<geojson::Feature>> NativeMapView::queryRenderedFeaturesForBox(JNIEnv& env, jni::jfloat left, jni::jfloat top,