mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Fix issue where background panel wouldn't update (close #6627)
This commit is contained in:
@@ -284,7 +284,9 @@ export function rendererBackground(context) {
|
||||
|
||||
|
||||
background.showsLayer = function(d) {
|
||||
return d.id === baseLayer.source().id ||
|
||||
var baseSource = baseLayer.source();
|
||||
if (!d || !baseSource) return false;
|
||||
return d.id === baseSource.id ||
|
||||
_overlayLayers.some(function(layer) { return d.id === layer.source().id; });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user