do not draw removed burgs

This commit is contained in:
GoteGuru 2022-04-06 22:39:17 +00:00
parent d7ced7271e
commit f30b7bb2bf

View file

@ -256,7 +256,7 @@ window.BurgsAndStates = (function () {
icons.selectAll("use").remove();
// capitals
const capitals = pack.burgs.filter(b => b.capital);
const capitals = pack.burgs.filter(b => b.capital && !b.removed);
const capitalIcons = burgIcons.select("#cities");
const capitalLabels = burgLabels.select("#cities");
const capitalSize = capitalIcons.attr("size") || 1;
@ -299,7 +299,7 @@ window.BurgsAndStates = (function () {
.attr("height", caSize);
// towns
const towns = pack.burgs.filter(b => b.i && !b.capital);
const towns = pack.burgs.filter(b => b.i && !b.capital && !b.removed);
const townIcons = burgIcons.select("#towns");
const townLabels = burgLabels.select("#towns");
const townSize = townIcons.attr("size") || 0.5;