mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 22:46:38 +02:00
Cleanup style and null check
This commit is contained in:
+2
-2
@@ -81,10 +81,10 @@ iD.svg.Labels = function(projection, context) {
|
||||
|
||||
} else {
|
||||
var str = encodeURIComponent(text).match(/%[CDEFcdef]/g);
|
||||
if (str == null) {
|
||||
if (str === null) {
|
||||
return size / 3 * 2 * text.length;
|
||||
} else {
|
||||
return size / 3 * ( 2 * text.length + str.length);
|
||||
return size / 3 * (2 * text.length + str.length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user