MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
geojson.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <mbgl/util/geojson.hpp>
5 
6 #include <optional>
7 
8 namespace mbgl {
9 namespace style {
10 namespace conversion {
11 
12 // Workaround until https://github.com/mapbox/mapbox-gl-native/issues/5623 is done.
13 std::optional<GeoJSON> parseGeoJSON(const std::string&, Error&);
14 
15 template <>
16 struct Converter<GeoJSON> {
17 public:
18  std::optional<GeoJSON> operator()(const Convertible&, Error&) const;
19 };
20 
21 } // namespace conversion
22 } // namespace style
23 } // namespace mbgl
std::optional< GeoJSON > parseGeoJSON(const std::string &, Error &)
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
Definition: actor.hpp:15
mapbox::geojson::geojson GeoJSON
Definition: geojson.hpp:8
std::optional< GeoJSON > operator()(const Convertible &, Error &) const