1 | #pragma once |
---|---|
2 | |
3 | #include <mbgl/tile/geometry_tile.hpp> |
4 | #include <mbgl/tile/tile_loader.hpp> |
5 | |
6 | namespace mbgl { |
7 | |
8 | class Tileset; |
9 | class TileParameters; |
10 | |
11 | class VectorTile : public GeometryTile { |
12 | public: |
13 | VectorTile(const OverscaledTileID&, |
14 | std::string sourceID, |
15 | const TileParameters&, |
16 | const Tileset&); |
17 | |
18 | void setNecessity(TileNecessity) final; |
19 | void setMetadata(optional<Timestamp> modified, optional<Timestamp> expires); |
20 | void setData(std::shared_ptr<const std::string> data); |
21 | |
22 | private: |
23 | TileLoader<VectorTile> loader; |
24 | }; |
25 | |
26 | } // namespace mbgl |
27 |