summaryrefslogtreecommitdiff
path: root/include/mbgl/style/style_source.hpp
blob: 6b86c30907299979444e0ed8208de21067e438ca (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
#ifndef MBGL_STYLE_STYLE_SOURCE
#define MBGL_STYLE_STYLE_SOURCE

#include <mbgl/style/types.hpp>

#include <memory>

namespace mbgl {

class Source;

class StyleSource {
public:
    const SourceType type;
    const std::string url;
    const uint32_t tile_size;
    const int32_t min_zoom;
    const int32_t max_zoom;

    bool enabled = false;
    std::shared_ptr<Source> source;

    StyleSource(SourceType type = SourceType::Vector, const std::string &url = "",
                uint32_t tile_size = 512, uint32_t min_zoom = 0, uint32_t max_zoom = 22)
        : type(type), url(url), tile_size(tile_size), min_zoom(min_zoom), max_zoom(max_zoom) {}
};
};

#endif