Files
MapLibreParticleLab/include/mbgl/style/conversion/geojson.hpp

23 lines
510 B
C++

#pragma once
#include <mbgl/util/geojson.hpp>
#include <mbgl/style/conversion.hpp>
#include <mbgl/util/optional.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