bring back toggleRaster() by way of layer enable toggling

This commit is contained in:
Justin R. Miller
2014-04-02 15:01:05 -07:00
parent 2e5fed2a7a
commit 00e910c147
4 changed files with 17 additions and 4 deletions

View File

@@ -63,6 +63,7 @@ public:
void stopRotating();
void toggleDebug();
void toggleRaster();
box cornersToBox(uint32_t z) const;
float getPixelRatio() const;

View File

@@ -24,6 +24,8 @@ public:
raster
};
bool enabled;
public:
Source(Map& map, Transform& transform, Painter& painter, Texturepool& texturepool, const char *url = "", float pixel_ratio = 1.0, Type type = Type::vector, std::list<uint32_t> zooms = {0}, uint32_t tile_size = 512, uint32_t min_zoom = 0, uint32_t max_zoom = 14, bool enabled = true);
@@ -56,7 +58,6 @@ private:
uint32_t tile_size;
uint32_t min_zoom;
uint32_t max_zoom;
bool enabled;
float pixel_ratio;