mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix: remove old lake paths on drawFeatures, v1.108.2
This commit is contained in:
parent
d98ef5717e
commit
12b8b941e3
3 changed files with 8 additions and 6 deletions
|
|
@ -36,12 +36,14 @@ function drawFeatures() {
|
|||
defs.select("#land").html(html.landMask.join(""));
|
||||
defs.select("#water").html(html.waterMask.join(""));
|
||||
|
||||
Object.entries(html.coastline).forEach(([group, paths]) => {
|
||||
coastline.select("#" + group).html(paths.join(""));
|
||||
coastline.selectAll("g").each(function () {
|
||||
const paths = html.coastline[this.id] || [];
|
||||
d3.select(this).html(paths.join(""));
|
||||
});
|
||||
|
||||
Object.entries(html.lakes).forEach(([group, paths]) => {
|
||||
lakes.select("#" + group).html(paths.join(""));
|
||||
lakes.selectAll("g").each(function () {
|
||||
const paths = html.lakes[this.id] || [];
|
||||
d3.select(this).html(paths.join(""));
|
||||
});
|
||||
|
||||
TIME && console.timeEnd("drawFeatures");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue