maplibre_native 0.8.7

Rust bindings to the MapLibre Native map rendering engine
Documentation
#pragma once

#include <mbgl/util/geojson.hpp>
#include "rust/cxx.h"
#include <memory>

namespace mln::bridge::geojson {

class GeoJson {
public:
    explicit GeoJson(mbgl::GeoJSON value);

    const mbgl::GeoJSON& get() const;

private:
    mbgl::GeoJSON value_;
};

std::unique_ptr<GeoJson> parse(rust::Str json);

std::unique_ptr<GeoJson> clone(const GeoJson& geojson);

// TODO(maplibre-native#4345): can be restored alongside the implementation in geojson.cpp.
// rust::String stringify(const GeoJson& geojson);

} // namespace mln::bridge::geojson