Skip to content

Commit

Permalink
feat(map-layer-dialog): use svg menu icons for layers
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Helms authored and hbruch committed Feb 1, 2025
1 parent c1d7dce commit 9457465
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/component/MapLayersDialogContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class MapLayersDialogContent extends React.Component {
return null;
}

const { svg } = categories
const { svg_menu: svgMenu } = categories
? categories[0].properties.icon
: properties.icon;

Expand All @@ -217,7 +217,9 @@ class MapLayersDialogContent extends React.Component {
settings: category.code,
})),
settings: code,
dataURI: svg ? `data:image/svg+xml;base64,${btoa(svg)}` : undefined,
dataURI: svgMenu
? `data:image/svg+xml;base64,${btoa(svgMenu)}`
: undefined,
};
})
.filter(Boolean);
Expand Down

0 comments on commit 9457465

Please sign in to comment.