diff options
Diffstat (limited to 'platform/android/src/style/sources/geojson_source.hpp')
-rw-r--r-- | platform/android/src/style/sources/geojson_source.hpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/platform/android/src/style/sources/geojson_source.hpp b/platform/android/src/style/sources/geojson_source.hpp new file mode 100644 index 0000000000..10c51e81b2 --- /dev/null +++ b/platform/android/src/style/sources/geojson_source.hpp @@ -0,0 +1,34 @@ +#pragma once + +#include "source.hpp" +#include <mbgl/style/sources/geojson_source.hpp> +#include <jni/jni.hpp> + +namespace mbgl { +namespace android { + +class GeoJSONSource : public Source { +public: + + static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/GeoJsonSource"; }; + + static jni::Class<GeoJSONSource> javaClass; + + static void registerNative(jni::JNIEnv&); + + GeoJSONSource(jni::JNIEnv&, jni::String, jni::Object<>); + + GeoJSONSource(mbgl::Map&, mbgl::style::GeoJSONSource&); + + ~GeoJSONSource(); + + void setGeoJSON(jni::JNIEnv&, jni::Object<>); + + void setURL(jni::JNIEnv&, jni::String); + + jni::jobject* createJavaPeer(jni::JNIEnv&); + +}; // class GeoJSONSource + +} // namespace android +} // namespace mbgl |