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.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/platform/android/src/snapshotter/map_snapshot.hpp b/platform/android/src/snapshotter/map_snapshot.hpp
index f168be85b4..6b82d02835 100644
--- a/platform/android/src/snapshotter/map_snapshot.hpp
+++ b/platform/android/src/snapshotter/map_snapshot.hpp
@@ -23,7 +23,7 @@ public:
static void registerNative(jni::JNIEnv&);
- static jni::Object<MapSnapshot> New(JNIEnv& env,
+ static jni::Local<jni::Object<MapSnapshot>> New(JNIEnv& env,
PremultipliedImage&& image,
float pixelRatio,
std::vector<std::string> attributions,
@@ -35,12 +35,10 @@ public:
MapSnapshot(float pixelRatio, PointForFn, LatLngForFn);
~MapSnapshot();
- jni::Object<PointF> pixelForLatLng(jni::JNIEnv&, jni::Object<LatLng>);
- jni::Object<LatLng> latLngForPixel(jni::JNIEnv&, jni::Object<PointF>);
+ jni::Local<jni::Object<PointF>> pixelForLatLng(jni::JNIEnv&, jni::Object<LatLng>&);
+ jni::Local<jni::Object<LatLng>> latLngForPixel(jni::JNIEnv&, jni::Object<PointF>&);
private:
- static jni::Class<MapSnapshot> javaClass;
-
float pixelRatio;
mbgl::MapSnapshotter::PointForFn pointForFn;
mbgl::MapSnapshotter::LatLngForFn latLngForFn;