don't require the background layer to be named "background"

This commit is contained in:
Konstantin Käfer
2014-08-05 11:58:16 +02:00
parent 17617a54bd
commit b402d03837
3 changed files with 3 additions and 3 deletions

View File

@@ -646,7 +646,7 @@ void Map::renderLayer(std::shared_ptr<StyleLayer> layer_desc, RenderPass pass) {
}
}
}
} else if (layer_desc->id == "background") {
} else if (layer_desc->type == StyleLayerType::Background) {
// This layer defines the background color.
} else {
// This is a singular layer.