Move the fields from geometry.hpp/feature.hpp as they are not part of the GeoJSON specification.
24 lines
665 B
C++
24 lines
665 B
C++
#pragma once
|
|
|
|
#include <mbgl/util/feature.hpp>
|
|
|
|
#include <jni/jni.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace android {
|
|
namespace geojson {
|
|
|
|
class Feature {
|
|
public:
|
|
static constexpr auto Name() { return "com/mapbox/geojson/Feature"; };
|
|
|
|
static mbgl::GeoJSONFeature convert(jni::JNIEnv&, const jni::Object<Feature>&);
|
|
static jni::Local<jni::Array<jni::Object<Feature>>> convert(jni::JNIEnv&, const std::vector<mbgl::Feature>&);
|
|
static jni::Local<jni::Array<jni::Object<Feature>>> convert(jni::JNIEnv&, const std::vector<mbgl::GeoJSONFeature>&);
|
|
|
|
static void registerNative(jni::JNIEnv&);
|
|
};
|
|
|
|
} // namespace geojson
|
|
} // namespace android
|
|
} // namespace mbgl
|