feat: burg groups - image icons

This commit is contained in:
Azgaar 2025-01-02 14:14:00 +01:00
parent c29f3b73e8
commit 2f53a635c8
27 changed files with 225 additions and 211 deletions

View file

@ -36,7 +36,7 @@ function drawBurgIcons() {
// capitalAnchors
// .selectAll("use")
// .data(capitals.filter(c => c.port))
// .data(capital.filter(c => c.port))
// .enter()
// .append("use")
// .attr("xlink:href", "#icon-anchor")
@ -62,7 +62,7 @@ function drawBurgIcon(burg) {
}
function createIconGroups() {
const defaultStyle = style.burgIcons.towns || Object.values(style.burgIcons)[0];
const defaultStyle = style.burgIcons.town || Object.values(style.burgIcons)[0];
// save existing styles and remove all groups
document.querySelectorAll("g#burgIcons > g").forEach(group => {