mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +01:00
Sky burgs + air routes: layer, editor toggles, styling, altitude, icons, and generators
This commit is contained in:
parent
e94ec5b123
commit
c075e704fd
6 changed files with 45 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue