only paint layer if it has data

refs #184
This commit is contained in:
Konstantin Käfer
2014-05-12 19:08:59 +02:00
parent 2a3377cc4d
commit 2b14579986
19 changed files with 50 additions and 25 deletions

View File

@@ -28,3 +28,7 @@ void RasterTileData::parse() {
void RasterTileData::render(Painter &painter, const LayerDescription& layer_desc) {
bucket.render(painter, layer_desc.name, id);
}
bool RasterTileData::hasData(const LayerDescription& layer_desc) const {
return bucket.hasData();
}