diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2018-03-13 12:31:56 +0200 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2018-03-19 11:19:09 +0200 |
commit | 2464520da18f0f4cc7532adb3fb7b1f8f195304e (patch) | |
tree | 8a391da645a7a84fce5ba2e05a0ef2422474d0cd /platform/android/src/geojson/multi_polygon.hpp | |
parent | f2fbe69b32d7683d489b1f259b6db49070736980 (diff) | |
download | qtlocation-mapboxgl-2464520da18f0f4cc7532adb3fb7b1f8f195304e.tar.gz |
[android] high-level jni bindings for geojson conversion
Diffstat (limited to 'platform/android/src/geojson/multi_polygon.hpp')
-rw-r--r-- | platform/android/src/geojson/multi_polygon.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/platform/android/src/geojson/multi_polygon.hpp b/platform/android/src/geojson/multi_polygon.hpp index 6e1dfacfc8..b4657af09d 100644 --- a/platform/android/src/geojson/multi_polygon.hpp +++ b/platform/android/src/geojson/multi_polygon.hpp @@ -3,20 +3,23 @@ #include <mbgl/util/geojson.hpp> #include <mbgl/util/noncopyable.hpp> -#include <jni/jni.hpp> - #include "../java/util.hpp" +#include "geometry.hpp" + +#include <jni/jni.hpp> namespace mbgl { namespace android { namespace geojson { -class MultiPolygon : private mbgl::util::noncopyable { +class MultiPolygon : public Geometry { public: static constexpr auto Name() { return "com/mapbox/geojson/MultiPolygon"; }; static constexpr auto Type() { return "MultiPolygon"; }; + static jni::Object<MultiPolygon> New(jni::JNIEnv&, const mbgl::MultiPolygon<double>&); + static mapbox::geojson::multi_polygon convert(jni::JNIEnv&, jni::Object<MultiPolygon>); static jni::Object<java::util::List> coordinates(jni::JNIEnv&, jni::Object<MultiPolygon>); |