mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-22 03:36:37 +02:00
Merge branch 'hlaw-unicodefix'
This commit is contained in:
+6
-1
@@ -80,7 +80,12 @@ iD.svg.Labels = function(projection, context) {
|
||||
return c[text];
|
||||
|
||||
} else {
|
||||
return size / 3 * 2 * text.length;
|
||||
var str = encodeURIComponent(text).match(/%[CDEFcdef]/g);
|
||||
if (str === null) {
|
||||
return size / 3 * 2 * text.length;
|
||||
} else {
|
||||
return size / 3 * (2 * text.length + str.length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user