Sky burgs + air routes: layer, editor toggles, styling, altitude, icons, and generators

This commit is contained in:
barrulus 2025-09-05 17:18:21 +01:00
parent e94ec5b123
commit c075e704fd
6 changed files with 45 additions and 12 deletions

View file

@ -65,6 +65,21 @@ function drawBurgIcons() {
.attr("width", townsAnchorsSize)
.attr("height", townsAnchorsSize);
// Sky burgs (flying or sky port)
const sky = pack.burgs.filter(b => b.i && !b.removed && (b.flying || b.skyPort));
const skyIcons = burgIcons.select("#skyburgs");
const skySize = skyIcons.attr("size") || 0.6;
skyIcons
.selectAll("circle")
.data(sky)
.enter()
.append("circle")
.attr("id", d => "burg" + d.i)
.attr("data-id", d => d.i)
.attr("cx", d => d.x)
.attr("cy", d => d.y)
.attr("r", skySize);
TIME && console.timeEnd("drawBurgIcons");
// Sky burgs (flying or sky port) — styled separately