diff options
author | Wilhelm Berg <wb@BergWerk-GIS.at> | 2018-09-12 15:07:57 +0200 |
---|---|---|
committer | Wilhelm Berg <wb@BergWerk-GIS.at> | 2018-09-12 15:07:57 +0200 |
commit | 98b34cb0dbf5c50d7f319724c93021418140b15f (patch) | |
tree | 11cd51f86b5c672dda6bfe087f40f77df1553971 /platform/android/src/geojson/point.hpp | |
parent | ee17d79f9420eb859303d977955454dacc470db6 (diff) | |
parent | 079ba0209ed383c15123902f0810e658c2b0abf4 (diff) | |
download | qtlocation-mapboxgl-upstream/bwg-vs2017.tar.gz |
Merge remote-tracking branch 'origin' into bwg-vs2017upstream/bwg-vs2017
# Conflicts:
# cmake/mason-dependencies.cmake
Diffstat (limited to 'platform/android/src/geojson/point.hpp')
-rw-r--r-- | platform/android/src/geojson/point.hpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/platform/android/src/geojson/point.hpp b/platform/android/src/geojson/point.hpp index 627bd1b649..b5d71ecae1 100644 --- a/platform/android/src/geojson/point.hpp +++ b/platform/android/src/geojson/point.hpp @@ -1,9 +1,7 @@ #pragma once -#include <mbgl/util/geojson.hpp> -#include <mbgl/util/noncopyable.hpp> +#include <mbgl/util/geometry.hpp> -#include "../java/util.hpp" #include "geometry.hpp" #include <jni/jni.hpp> @@ -12,21 +10,14 @@ namespace mbgl { namespace android { namespace geojson { -class Point : public Geometry { +class Point { public: + using SuperTag = Geometry; static constexpr auto Name() { return "com/mapbox/geojson/Point"; }; - static constexpr auto Type() { return "Point"; }; - static jni::Object<Point> New(jni::JNIEnv&, const mbgl::Point<double>&); - - static mapbox::geojson::point convert(jni::JNIEnv&, jni::Object<Point>); - - static mapbox::geojson::point convert(jni::JNIEnv&, jni::Object<java::util::List/*<Double>*/>); - - static jni::Object<java::util::List> coordinates(JNIEnv&, jni::Object<Point>); - - static jni::Class<Point> javaClass; + static jni::Local<jni::Object<Point>> New(jni::JNIEnv&, const mbgl::Point<double>&); + static mbgl::Point<double> convert(jni::JNIEnv&, const jni::Object<Point>&); static void registerNative(jni::JNIEnv&); }; |