fix formatting

This commit is contained in:
GoteGuru 2022-05-18 23:01:48 +02:00
parent 0d71f10f05
commit 70e7adb5d0

View file

@ -164,12 +164,8 @@ async function getMapURL(type, options = {}) {
clone.select("#oceanBase").attr("opacity", 0); clone.select("#oceanBase").attr("opacity", 0);
clone.select("#oceanPattern").attr("opacity", 0); clone.select("#oceanPattern").attr("opacity", 0);
} }
if (noScaleBar) { if (noScaleBar) clone.select("#scaleBar")?.remove();
clone.select("#scaleBar")?.remove() if (noIce) clone.select("#ice")?.remove();
}
if (noIce) {
clone.select("#ice")?.remove()
}
if (fullMap) { if (fullMap) {
// reset transform to show the whole map // reset transform to show the whole map
clone.attr("width", graphWidth).attr("height", graphHeight); clone.attr("width", graphWidth).attr("height", graphHeight);