summaryrefslogtreecommitdiff
path: root/include/mbgl/map/source.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/map/source.hpp')
-rw-r--r--include/mbgl/map/source.hpp29
1 files changed, 12 insertions, 17 deletions
diff --git a/include/mbgl/map/source.hpp b/include/mbgl/map/source.hpp
index be5fad3af8..c3f2d4fe8b 100644
--- a/include/mbgl/map/source.hpp
+++ b/include/mbgl/map/source.hpp
@@ -3,30 +3,29 @@
#include <mbgl/map/tile.hpp>
#include <mbgl/map/tile_data.hpp>
+#include <mbgl/style/style_source.hpp>
+
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/time.hpp>
-#include <mbgl/style/style_source.hpp>
-#include <mbgl/style/types.hpp>
+#include <mbgl/util/mat4.hpp>
-#include <list>
+#include <cstdint>
#include <forward_list>
-#include <memory>
-#include <vector>
-#include <string>
+#include <iosfwd>
#include <map>
-#include <set>
+#include <memory>
namespace mbgl {
+class Map;
+class Painter;
+class StyleLayer;
class TransformState;
-class Texturepool;
+struct box;
class Source : public std::enable_shared_from_this<Source>, private util::noncopyable {
public:
- Source(StyleSource style_source, const std::string &access_token = "");
- Source(SourceType type = SourceType::Vector, const std::string &url = "",
- uint32_t tile_size = 512, uint32_t min_zoom = 0, uint32_t max_zoom = 22,
- const std::string &access_token = "");
+ Source(SourceInfo info, const std::string &access_token = "");
bool update(Map &map);
void updateMatrices(const mat4 &projMatrix, const TransformState &transform);
@@ -41,11 +40,7 @@ public:
static std::string normalizeSourceURL(const std::string &url, const std::string &access_token);
public:
- const SourceType type;
- const std::string url;
- const uint32_t tile_size;
- const int32_t min_zoom;
- const int32_t max_zoom;
+ const SourceInfo info;
private:
bool findLoadedChildren(const Tile::ID& id, int32_t maxCoveringZoom, std::forward_list<Tile::ID>& retain);