Skip to content

Commit

Permalink
fix(layer-legend): use default bg color if no basemap defined
Browse files Browse the repository at this point in the history
  • Loading branch information
pwambach committed Sep 8, 2020
1 parent a7cf236 commit 29eb9fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const backgroundColorMapping: {[_: string]: string} = {

const getBackgroundColor = (basemap: BasemapId | null) => {
if (!basemap) {
return 'transparent';
return backgroundColorMapping[config.defaultBasemap];
}

return backgroundColorMapping[basemap];
Expand Down

0 comments on commit 29eb9fa

Please sign in to comment.