#ifndef MBGL_STYLE_STYLE_SOURCE #define MBGL_STYLE_STYLE_SOURCE #include #include #include #include #include #include namespace mbgl { class Source; class SourceInfo : private util::noncopyable { public: SourceType type = SourceType::Vector; std::string url; std::vector tiles; uint16_t tile_size = 512; uint16_t min_zoom = 0; uint16_t max_zoom = 22; std::string attribution; std::array center = {{0, 0, 0}}; std::array bounds = {{-180, -90, 180, 90}}; void parseTileJSONProperties(const rapidjson::Value&); }; class StyleSource : public std::enable_shared_from_this { public: util::ptr info; bool enabled = false; util::ptr source; StyleSource(const util::ptr &info_) : info(info_) {} }; } #endif