summaryrefslogtreecommitdiff
path: root/platform/android/src/snapshotter/map_snapshot.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/snapshotter/map_snapshot.hpp')
-rw-r--r--platform/android/src/snapshotter/map_snapshot.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/android/src/snapshotter/map_snapshot.hpp b/platform/android/src/snapshotter/map_snapshot.hpp
index 48dd1b6049..f168be85b4 100644
--- a/platform/android/src/snapshotter/map_snapshot.hpp
+++ b/platform/android/src/snapshotter/map_snapshot.hpp
@@ -17,6 +17,7 @@ class MapSnapshot {
public:
using PointForFn = mbgl::MapSnapshotter::PointForFn;
+ using LatLngForFn = mbgl::MapSnapshotter::LatLngForFn;
static constexpr auto Name() { return "com/mapbox/mapboxsdk/snapshotter/MapSnapshot"; };
@@ -27,10 +28,11 @@ public:
float pixelRatio,
std::vector<std::string> attributions,
bool showLogo,
- PointForFn pointForFn);
+ PointForFn pointForFn,
+ LatLngForFn latLngForFn);
MapSnapshot(jni::JNIEnv&) {};
- MapSnapshot(float pixelRatio, PointForFn);
+ MapSnapshot(float pixelRatio, PointForFn, LatLngForFn);
~MapSnapshot();
jni::Object<PointF> pixelForLatLng(jni::JNIEnv&, jni::Object<LatLng>);
@@ -41,6 +43,7 @@ private:
float pixelRatio;
mbgl::MapSnapshotter::PointForFn pointForFn;
+ mbgl::MapSnapshotter::LatLngForFn latLngForFn;
};
} // namespace android