summaryrefslogtreecommitdiff
path: root/platform/android/src/geojson/geometry_collection.hpp
blob: 9f02ac848d012172dac14b3cbf8de361ef51f7cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include "geometry.hpp"

#include <jni/jni.hpp>

namespace mbgl {
namespace android {
namespace geojson {

class GeometryCollection {
public:
    using SuperTag = Geometry;
    static constexpr auto Name() { return "com/mapbox/geojson/GeometryCollection"; };
    static constexpr auto Type() { return "GeometryCollection"; };

    static jni::Local<jni::Object<GeometryCollection>> New(jni::JNIEnv&, const mapbox::geometry::geometry_collection<double>&);

    static mapbox::geometry::geometry_collection<double> convert(jni::JNIEnv&, const jni::Object<GeometryCollection>&);

    static void registerNative(jni::JNIEnv&);
};

} // namespace geojson
} // namespace android
} // namespace mbgl