From 99d60421e31c00c8051398aaf10a481dbccfd82b Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Wed, 3 Jul 2024 09:41:56 -0700
Subject: Move tree copse terrain feature from grid into buildings group
---
src/radial.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
(limited to 'src/radial.js')
diff --git a/src/radial.js b/src/radial.js
index c6e52a6..038d9c1 100644
--- a/src/radial.js
+++ b/src/radial.js
@@ -511,6 +511,9 @@ function drawMapsheet(gameboard, mapsheet, position) {
drawHexes(gridContainer, grid, true);
(mapsheet.features || []).forEach(feature => {
+ const featureContainer = document.createElementNS(xmlns, 'g');
+ featureContainer.classList.add('terrain');
+
const origin = feature.position({ q: 0, r: 0, s: 0 });
const use = document.createElementNS(xmlns, 'use');
@@ -524,7 +527,8 @@ function drawMapsheet(gameboard, mapsheet, position) {
use.setAttributeNS(null, 'x', x);
use.setAttributeNS(null, 'y', y);
- gridContainer.appendChild(use);
+ featureContainer.appendChild(use)
+ buildingContainer.appendChild(featureContainer);
});
container.appendChild(gridContainer);
--
cgit v1.2.3