pass SourceInfo object to TileData so that we can not skip buckets that appear later than the source maxzoom
This commit is contained in:
@@ -12,7 +12,7 @@ class RasterTileData : public TileData {
|
||||
friend class TileParser;
|
||||
|
||||
public:
|
||||
RasterTileData(Tile::ID id, Map &map, const std::string url);
|
||||
RasterTileData(Tile::ID id, Map &map, const SourceInfo &source);
|
||||
~RasterTileData();
|
||||
|
||||
virtual void parse();
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace mbgl {
|
||||
class Map;
|
||||
class Painter;
|
||||
class StyleLayer;
|
||||
class SourceInfo;
|
||||
|
||||
class TileData : public std::enable_shared_from_this<TileData>,
|
||||
private util::noncopyable {
|
||||
@@ -37,7 +38,7 @@ public:
|
||||
};
|
||||
|
||||
public:
|
||||
TileData(Tile::ID id, Map &map, const std::string url);
|
||||
TileData(Tile::ID id, Map &map, const SourceInfo &source);
|
||||
~TileData();
|
||||
|
||||
void request();
|
||||
@@ -60,8 +61,13 @@ public:
|
||||
protected:
|
||||
Map ↦
|
||||
|
||||
public:
|
||||
const SourceInfo &source;
|
||||
|
||||
// Request-related information.
|
||||
const std::string url;
|
||||
|
||||
protected:
|
||||
std::weak_ptr<platform::Request> req;
|
||||
std::string data;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ class VectorTileData : public TileData {
|
||||
friend class TileParser;
|
||||
|
||||
public:
|
||||
VectorTileData(Tile::ID id, Map &map, const std::string url);
|
||||
VectorTileData(Tile::ID id, Map &map, const SourceInfo &source);
|
||||
~VectorTileData();
|
||||
|
||||
virtual void beforeParse();
|
||||
|
||||
Reference in New Issue
Block a user