From d7ced7271e659514482f3e6b475e5404802249cb Mon Sep 17 00:00:00 2001 From: GoteGuru Date: Wed, 6 Apr 2022 22:34:35 +0000 Subject: [PATCH] round style settings --- modules/ui/submap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/submap.js b/modules/ui/submap.js index 8f9da39b..1d140479 100644 --- a/modules/ui/submap.js +++ b/modules/ui/submap.js @@ -82,8 +82,8 @@ const generateSubmap = debounce(async function () { if (options.promoteTowns) { const groupName = 'largetowns'; moveAllBurgsToGroup('towns', groupName); - changeRadius(oldScale * 0.8, groupName); - changeFontSize(svg.select(`#labels #${groupName}`), oldScale*2); + changeRadius(rn(oldScale * 0.8,2), groupName); + changeFontSize(svg.select(`#labels #${groupName}`), rn(oldScale*2, 2)); invokeActiveZooming(); } } catch (error) {