Files
MapLibreParticleLab/platform/android/src/geojson/feature.hpp
Osana Babayan 7a0a4c44f4 migrated to use mapbox-java3.0
migrated to use mapbox-java3.0 
old 2.2.9 telementry is still used though
2018-02-08 10:33:12 -05:00

39 lines
988 B
C++

#pragma once
#include <mbgl/util/feature.hpp>
#include <mbgl/util/geometry.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <jni/jni.hpp>
#include "geometry.hpp"
#include "../gson/json_object.hpp"
namespace mbgl {
namespace android {
namespace geojson {
class Feature : private mbgl::util::noncopyable {
public:
static constexpr auto Name() { return "com/mapbox/geojson/Feature"; };
static jni::Object<Feature> fromGeometry(jni::JNIEnv&, jni::Object<Geometry>, jni::Object<gson::JsonObject>, jni::String);
static mbgl::Feature convert(jni::JNIEnv&, jni::Object<Feature>);
static jni::Object<Geometry> geometry(jni::JNIEnv&, jni::Object<Feature>);
static jni::String id(jni::JNIEnv&, jni::Object<Feature>);
static jni::Object<gson::JsonObject> properties(jni::JNIEnv&, jni::Object<Feature>);
static jni::Class<Feature> javaClass;
static void registerNative(jni::JNIEnv&);
};
} // namespace geojson
} // namespace android
} // namespace mbgl