Files
MapLibreParticleLab/include/mbgl/style/style_source.hpp
2014-07-17 15:37:18 -07:00

38 lines
776 B
C++

#ifndef MBGL_STYLE_STYLE_SOURCE
#define MBGL_STYLE_STYLE_SOURCE
#include <mbgl/style/types.hpp>
#include <memory>
namespace mbgl {
class Source;
class SourceInfo {
public:
const SourceType type;
const std::string url;
const uint32_t tile_size;
const int32_t min_zoom;
const int32_t max_zoom;
SourceInfo(SourceType type = SourceType::Vector, const std::string &url = "",
uint32_t tile_size = 512, int32_t min_zoom = 0, int32_t max_zoom = 22)
: type(type), url(url), tile_size(tile_size), min_zoom(min_zoom), max_zoom(max_zoom) {}
};
class StyleSource {
public:
const SourceInfo info;
bool enabled = false;
std::shared_ptr<Source> source;
StyleSource(const SourceInfo &info) : info(info) {}
};
}
#endif