diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-08-05 11:58:16 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-08-05 11:58:16 +0200 |
commit | b402d03837d96b0d62ff9b44da64b7d9ff32917b (patch) | |
tree | 4d8d3498cb2bfc2ca89c058306203c938de234b9 /src/map | |
parent | 17617a54bdcd2c51f7b28cbde18655a2e62f63e3 (diff) | |
download | qtlocation-mapboxgl-b402d03837d96b0d62ff9b44da64b7d9ff32917b.tar.gz |
don't require the background layer to be named "background"
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp index e640ec68a2..4b4e58d140 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -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. |