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.hpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/platform/android/src/snapshotter/map_snapshot.hpp b/platform/android/src/snapshotter/map_snapshot.hpp
deleted file mode 100644
index 6b82d02835..0000000000
--- a/platform/android/src/snapshotter/map_snapshot.hpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#pragma once
-
-#include <mbgl/map/map_snapshotter.hpp>
-
-#include <jni/jni.hpp>
-
-#include "../geometry/lat_lng.hpp"
-#include "../graphics/pointf.hpp"
-
-#include <vector>
-#include <string>
-
-namespace mbgl {
-namespace android {
-
-class MapSnapshot {
-public:
-
- using PointForFn = mbgl::MapSnapshotter::PointForFn;
- using LatLngForFn = mbgl::MapSnapshotter::LatLngForFn;
-
- static constexpr auto Name() { return "com/mapbox/mapboxsdk/snapshotter/MapSnapshot"; };
-
- static void registerNative(jni::JNIEnv&);
-
- static jni::Local<jni::Object<MapSnapshot>> New(JNIEnv& env,
- PremultipliedImage&& image,
- float pixelRatio,
- std::vector<std::string> attributions,
- bool showLogo,
- PointForFn pointForFn,
- LatLngForFn latLngForFn);
-
- MapSnapshot(jni::JNIEnv&) {};
- MapSnapshot(float pixelRatio, PointForFn, LatLngForFn);
- ~MapSnapshot();
-
- jni::Local<jni::Object<PointF>> pixelForLatLng(jni::JNIEnv&, jni::Object<LatLng>&);
- jni::Local<jni::Object<LatLng>> latLngForPixel(jni::JNIEnv&, jni::Object<PointF>&);
-
-private:
- float pixelRatio;
- mbgl::MapSnapshotter::PointForFn pointForFn;
- mbgl::MapSnapshotter::LatLngForFn latLngForFn;
-};
-
-} // namespace android
-} // namespace mbgl \ No newline at end of file