#pragma once #include #include #include #include "multi_point.hpp" #include "../geometry/lat_lng.hpp" #include "../java/util.hpp" namespace mbgl { namespace android { class Polygon : private MultiPoint { public: static constexpr auto Name() { return "com/mapbox/mapboxsdk/annotations/Polygon"; }; static jni::Class javaClass; static mbgl::FillAnnotation toAnnotation(jni::JNIEnv&, jni::Object); static void registerNative(jni::JNIEnv&); private: static jni::Object getPoints(jni::JNIEnv&, jni::Object); static jni::Object getHoles(jni::JNIEnv&, jni::Object); static float getOpacity(jni::JNIEnv&, jni::Object); static mbgl::Color getFillColor(jni::JNIEnv&, jni::Object); static mbgl::Color getOutlineColor(jni::JNIEnv&, jni::Object); }; } // namespace android } // namespace mbgl