20 lines
525 B
C++
20 lines
525 B
C++
#include <mbgl/style/conversion/geojson.hpp>
|
|
#include <mbgl/style/conversion/json.hpp>
|
|
#include <mbgl/style/conversion_impl.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace style {
|
|
namespace conversion {
|
|
|
|
std::optional<GeoJSON> Converter<GeoJSON>::operator()(const Convertible& value, Error& error) const {
|
|
return toGeoJSON(value, error);
|
|
}
|
|
|
|
std::optional<GeoJSON> parseGeoJSON(const std::string& value, Error& error) {
|
|
return convertJSON<GeoJSON>(value, error);
|
|
}
|
|
|
|
} // namespace conversion
|
|
} // namespace style
|
|
} // namespace mbgl
|