Fix "Custom" radio button state

This commit is contained in:
John Firebaugh
2013-07-25 11:58:11 -07:00
parent 5f02f348de
commit 476509111f

View File

@@ -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) {