summaryrefslogtreecommitdiff
path: root/platform/android/src/snapshotter/map_snapshot.hpp
diff options
context:
space:
mode:
authorIgor Tarasov <igor.tarasov@mapbox.com>2020-04-02 18:36:55 +0300
committerGitHub <noreply@github.com>2020-04-02 18:36:55 +0300
commit338cfd1b33dfe26b9402d79cc64609b944a9f1d1 (patch)
tree2db5f73682b226ad64489742596acee9337c0538 /platform/android/src/snapshotter/map_snapshot.hpp
parentb7728d222cbcdb3e522fc3e482e69101b0b95481 (diff)
downloadqtlocation-mapboxgl-338cfd1b33dfe26b9402d79cc64609b944a9f1d1.tar.gz
[android] [build] [ci] Move Android JNI bindings code to mapbox-gl-native-android repo. (#16356)
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