34 lines
854 B
C++
34 lines
854 B
C++
#pragma once
|
|
|
|
#include <mbgl/util/geojson.hpp>
|
|
#include <mbgl/util/noncopyable.hpp>
|
|
|
|
#include "../java/util.hpp"
|
|
#include "geometry.hpp"
|
|
|
|
#include <jni/jni.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace android {
|
|
namespace geojson {
|
|
|
|
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>);
|
|
|
|
static jni::Class<MultiPolygon> javaClass;
|
|
|
|
static void registerNative(jni::JNIEnv&);
|
|
};
|
|
|
|
} // namespace geojson
|
|
} // namespace android
|
|
} // namespace mbgl
|