blob: 3fd3ab797a924b68a23f543fa3816adc30025407 (
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
|
#pragma once
#include <mbgl/style/source.hpp>
#include <mbgl/util/tileset.hpp>
#include <mbgl/util/variant.hpp>
namespace mbgl {
namespace style {
class TilesetSource : public Source {
public:
~TilesetSource() override;
const Tileset* getTileset() const final;
optional<Resource> getResource() const final;
optional<std::string> getURL() const;
Value serialize() const override;
static Value getPropertyDefaultValue(const std::string&);
protected:
TilesetSource(Immutable<Impl>, variant<std::string, Tileset> urlOrTileset);
Value getPropertyInternal(const std::string&) const override;
const variant<std::string, Tileset> urlOrTileset;
};
} // namespace style
} // namespace mbgl
|