Files
MapLibreParticleLab/src/mbgl/style/conversion/geojson.cpp
2018-08-19 13:09:16 +02:00

20 lines
515 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 {
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