Files
MapLibreParticleLab/src/mbgl/style/conversion/geojson.cpp
2023-03-17 13:51:59 +02:00

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