diff options
Diffstat (limited to 'platform/android/src/snapshotter/map_snapshot.hpp')
-rw-r--r-- | platform/android/src/snapshotter/map_snapshot.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/platform/android/src/snapshotter/map_snapshot.hpp b/platform/android/src/snapshotter/map_snapshot.hpp index 4673dcd16e..3393d66317 100644 --- a/platform/android/src/snapshotter/map_snapshot.hpp +++ b/platform/android/src/snapshotter/map_snapshot.hpp @@ -6,6 +6,7 @@ #include "../geometry/lat_lng.hpp" #include "../graphics/pointf.hpp" +#include "../geojson/feature.hpp" #include <vector> #include <string> @@ -17,6 +18,7 @@ class MapSnapshot { public: using PointForFn = mbgl::MapSnapshotter::PointForFn; + using QueryPointForFn = mbgl::MapSnapshotter::QueryPointForFn; static constexpr auto Name() { return "com/mapbox/mapboxsdk/snapshotter/MapSnapshot"; }; @@ -27,19 +29,27 @@ public: float pixelRatio, std::vector<std::string> attributions, bool showLogo, - PointForFn pointForFn); + PointForFn pointForFn, + QueryPointForFn queryPointForFn); MapSnapshot(jni::JNIEnv&) {}; MapSnapshot(float pixelRatio, PointForFn); ~MapSnapshot(); jni::Object<PointF> pixelForLatLng(jni::JNIEnv&, jni::Object<LatLng>); + jni::Array<jni::Object<geojson::Feature>> queryRenderedFeaturesForPoint(JNIEnv&, jni::jfloat, jni::jfloat, + jni::Array<jni::String>, + jni::Array<jni::Object<>> jfilter); +// jni::Array<jni::Object<geojson::Feature>> queryRenderedFeaturesForBox(JNIEnv&, jni::jfloat, jni::jfloat, jni::jfloat, +// jni::jfloat, jni::Array<jni::String>, +// jni::Array<jni::Object<>> jfilter); private: static jni::Class<MapSnapshot> javaClass; float pixelRatio; mbgl::MapSnapshotter::PointForFn pointForFn; + mbgl::MapSnapshotter::QueryPointForFn queryPointForFn; }; } // namespace android |