summaryrefslogtreecommitdiff
path: root/include/mbgl/style/conversion/geojson.hpp
blob: 0b594f066c7025ae74474f871991fdd33effdd80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <mbgl/style/conversion.hpp>
#include <mbgl/util/geojson.hpp>

namespace mbgl {
namespace style {
namespace conversion {

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
} // namespace mbgl