summaryrefslogtreecommitdiff
path: root/htdocs/mapscript.js
diff options
context:
space:
mode:
authorMarkus Koch <markus@notsyncing.net>2020-04-26 18:48:18 +0200
committerMarkus Koch <markus@notsyncing.net>2020-04-26 18:48:18 +0200
commitc7c4975a571d1974d3807755a064d8489b60ffa4 (patch)
treec45a4392dbccf760bb530dd68bdad7bb3fe5aa0e /htdocs/mapscript.js
parent2e67f22044c0629749414c28cc878ba244e7a354 (diff)
downloadlifomapserver-c7c4975a571d1974d3807755a064d8489b60ffa4.tar.gz
lifomapserver-c7c4975a571d1974d3807755a064d8489b60ffa4.tar.bz2
lifomapserver-c7c4975a571d1974d3807755a064d8489b60ffa4.zip
Optimize font sizes for city outlines
Diffstat (limited to 'htdocs/mapscript.js')
-rw-r--r--htdocs/mapscript.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js
index 40d48ab..30e066a 100644
--- a/htdocs/mapscript.js
+++ b/htdocs/mapscript.js
@@ -54,13 +54,13 @@ streetLabelsRenderer._getDynamicFontSize = function (layer) {
case "city":
break;
case "town":
- size *= 2/3;
+ size *= 2.0/3.0;
break;
case "village":
- size *= 1/3;
+ size *= 1.5/3;
break;
case "district":
- size *= 2/3;
+ size *= 2.0/3;
break;
default:
size *= 0.5/3;