blob: 96b9a99606ccf34ffc4eddfe1a19ff30519dcb29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include <mbgl/style/source.hpp>
namespace mbgl {
namespace style {
class GeoJSONSource : public Source {
public:
// Future public API:
// void setData(FeatureCollection&&);
// void setJSON(const std::string& json);
// void loadData(const std::string& url);
// Private implementation
class Impl;
template <class Fn>
GeoJSONSource(Fn&& fn)
: Source(SourceType::GeoJSON, fn(*this)) {
}
};
} // namespace style
} // namespace mbgl
|