mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-16 18:52:57 +00:00
Fix "Custom" radio button state
This commit is contained in:
@@ -148,7 +148,9 @@ iD.Background = function(context) {
|
||||
};
|
||||
|
||||
background.showsLayer = function(d) {
|
||||
return d === baseLayer.source() || overlayLayers.some(function(l) { return l.source() === d; });
|
||||
return d === baseLayer.source() ||
|
||||
(d.data.name === 'Custom' && baseLayer.source().data.name === 'Custom') ||
|
||||
overlayLayers.some(function(l) { return l.source() === d; });
|
||||
};
|
||||
|
||||
background.toggleOverlayLayer = function(d) {
|
||||
|
||||
Reference in New Issue
Block a user