summaryrefslogtreecommitdiff
path: root/include/mbgl/util/tileset.hpp
blob: 1f28a5039a6a8d62184292bb46438e0c543fbb1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <mbgl/util/range.hpp>

#include <vector>
#include <string>
#include <cstdint>

namespace mbgl {

class Tileset {
public:
    enum class Scheme : bool { XYZ, TMS };

    std::vector<std::string> tiles;
    Range<uint8_t> zoomRange { 0, 22 };
    std::string attribution;
    Scheme scheme = Scheme::XYZ;

    // TileJSON also includes center, zoom, and bounds, but they are not used by mbgl.
};

} // namespace mbgl