summaryrefslogtreecommitdiff
path: root/platform/android/src/geojson/multi_polygon.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/geojson/multi_polygon.hpp')
-rw-r--r--platform/android/src/geojson/multi_polygon.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/platform/android/src/geojson/multi_polygon.hpp b/platform/android/src/geojson/multi_polygon.hpp
new file mode 100644
index 0000000000..1f144cffd2
--- /dev/null
+++ b/platform/android/src/geojson/multi_polygon.hpp
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <mbgl/util/geojson.hpp>
+#include <mbgl/util/noncopyable.hpp>
+
+#include <jni/jni.hpp>
+
+#include "../java/util.hpp"
+
+namespace mbgl {
+namespace android {
+namespace geojson {
+
+class MultiPolygon : private mbgl::util::noncopyable {
+public:
+ static constexpr auto Name() { return "com/mapbox/services/commons/geojson/MultiPolygon"; };
+
+ static constexpr auto Type() { return "MultiPolygon"; };
+
+ static mapbox::geojson::multi_polygon convert(jni::JNIEnv&, jni::Object<MultiPolygon>);
+
+ static jni::Object<java::util::List> getCoordinates(jni::JNIEnv&, jni::Object<MultiPolygon>);
+
+ static jni::Class<MultiPolygon> javaClass;
+
+ static void registerNative(jni::JNIEnv&);
+};
+
+} // namespace geojson
+} // namespace android
+} // namespace mbgl \ No newline at end of file