blob: c2d34c54910ec496a4f3b56cd177d48065f8dd4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <mbgl/style/conversion/geojson.hpp>
#include <mbgl/style/conversion/json.hpp>
#include <mbgl/style/conversion_impl.hpp>
namespace mbgl {
namespace style {
namespace conversion {
optional<GeoJSON> Converter<GeoJSON>::operator()(const Convertible& value, Error& error) const {
return toGeoJSON(value, error);
}
optional<GeoJSON> parseGeoJSON(const std::string& value, Error& error) {
return convertJSON<GeoJSON>(value, error);
}
} // namespace conversion
} // namespace style
} // namespace mbgl
|