diff options
Diffstat (limited to 'include/mbgl/style/conversion/geojson.hpp')
-rw-r--r-- | include/mbgl/style/conversion/geojson.hpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/mbgl/style/conversion/geojson.hpp b/include/mbgl/style/conversion/geojson.hpp index 6e6e97dbc0..0b594f066c 100644 --- a/include/mbgl/style/conversion/geojson.hpp +++ b/include/mbgl/style/conversion/geojson.hpp @@ -1,14 +1,22 @@ #pragma once #include <mbgl/style/conversion.hpp> -#include <mbgl/style/sources/geojson_source.hpp> +#include <mbgl/util/geojson.hpp> namespace mbgl { namespace style { namespace conversion { -template <class V> -optional<GeoJSON> convertGeoJSON(const V& value, Error& error); +template <> +struct Converter<GeoJSON> { +public: + optional<GeoJSON> operator()(const std::string&, Error&) const; + + // This is explicitly specialized in the .cpp file for JSValue. It may also be explicitly + // specialized for SDK-specific types (e.g. mbgl::android::Value). + template <class V> + optional<GeoJSON> operator()(const V&, Error&) const; +}; } // namespace conversion } // namespace style |