30 lines
769 B
C++
30 lines
769 B
C++
#pragma once
|
|
|
|
#include "source.hpp"
|
|
#include <mbgl/style/sources/raster_dem_source.hpp>
|
|
#include <jni/jni.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace android {
|
|
|
|
class RasterDEMSource : public Source {
|
|
public:
|
|
using SuperTag = Source;
|
|
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/RasterDemSource"; };
|
|
|
|
static void registerNative(jni::JNIEnv&);
|
|
|
|
RasterDEMSource(jni::JNIEnv&, const jni::String&, const jni::Object<>&, jni::jint);
|
|
RasterDEMSource(jni::JNIEnv&, mbgl::style::Source&, AndroidRendererFrontend*);
|
|
~RasterDEMSource();
|
|
|
|
jni::Local<jni::String> getURL(jni::JNIEnv&);
|
|
|
|
private:
|
|
jni::Local<jni::Object<Source>> createJavaPeer(jni::JNIEnv&);
|
|
|
|
}; // class RasterDEMSource
|
|
|
|
} // namespace android
|
|
} // namespace mbgl
|