blob: da2673a38ce7e2b630a4688e82c21db0e42b6beb (
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
28
29
30
31
32
|
#pragma once
#include <mbgl/style/source_impl.hpp>
#include <mbgl/style/sources/geojson_source.hpp>
#include <mbgl/util/range.hpp>
namespace mbgl {
class AsyncRequest;
class CanonicalTileID;
namespace style {
class GeoJSONSource::Impl : public Source::Impl {
public:
Impl(std::string id, optional<GeoJSONOptions>);
Impl(const GeoJSONSource::Impl&, std::shared_ptr<GeoJSONData>);
~Impl() final;
Range<uint8_t> getZoomRange() const;
std::weak_ptr<GeoJSONData> getData() const;
const GeoJSONOptions& getOptions() const { return options; }
optional<std::string> getAttribution() const final;
private:
GeoJSONOptions options;
std::shared_ptr<GeoJSONData> data;
};
} // namespace style
} // namespace mbgl
|