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

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

namespace mbgl {
namespace style {
namespace conversion {

// Workaround until https://github.com/mapbox/mapbox-gl-native/issues/5623 is done.
optional<GeoJSON> parseGeoJSON(const std::string&, Error&);

template <>
struct Converter<GeoJSON> {
public:
    optional<GeoJSON> operator()(const Convertible&, Error&) const;
};

} // namespace conversion
} // namespace style
} // namespace mbgl