refs #168: no longer need zooms
This commit is contained in:
@@ -30,10 +30,8 @@ public:
|
||||
|
||||
public:
|
||||
Source(Map &map, Painter &painter,
|
||||
const char *url = "", Type type = Type::vector, std::vector<uint32_t> zooms = {0},
|
||||
uint32_t tile_size = 512, uint32_t min_zoom = 0, uint32_t max_zoom = 14,
|
||||
bool enabled = true);
|
||||
|
||||
const char *url = "", Type type = Type::vector, uint32_t tile_size = 512,
|
||||
uint32_t min_zoom = 0, uint32_t max_zoom = 14, bool enabled = true);
|
||||
|
||||
bool update();
|
||||
void updateMatrices(const TransformState &transform);
|
||||
@@ -65,7 +63,6 @@ private:
|
||||
Painter& painter;
|
||||
|
||||
const Type type;
|
||||
const std::vector<uint32_t> zooms;
|
||||
const std::string url;
|
||||
const uint32_t tile_size;
|
||||
const int32_t min_zoom;
|
||||
|
||||
@@ -172,7 +172,6 @@ void Map::setup() {
|
||||
painter,
|
||||
kVectorTileURL,
|
||||
Source::Type::vector,
|
||||
{{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }},
|
||||
512,
|
||||
0,
|
||||
14,
|
||||
|
||||
@@ -17,13 +17,12 @@
|
||||
using namespace llmr;
|
||||
|
||||
Source::Source(Map &map, Painter &painter,
|
||||
const char *url, Source::Type type, std::vector<uint32_t> zooms, uint32_t tile_size,
|
||||
const char *url, Source::Type type, uint32_t tile_size,
|
||||
uint32_t min_zoom, uint32_t max_zoom, bool enabled)
|
||||
: enabled(enabled),
|
||||
map(map),
|
||||
painter(painter),
|
||||
type(type),
|
||||
zooms(zooms),
|
||||
url(url),
|
||||
tile_size(tile_size),
|
||||
min_zoom(min_zoom),
|
||||
|
||||
Reference in New Issue
Block a user