Make wrap work with points

This commit is contained in:
Andreas Hocevar
2018-03-07 10:14:44 +01:00
parent 8403f7d951
commit 18a668318d

View File

@@ -78,7 +78,7 @@ const getText = function(feature, resolution, dom) {
text = '';
} else if (type == 'shorten') {
text = text.trunc(12);
} else if (type == 'wrap' && dom.placement.value != 'line') {
} else if (type == 'wrap' && (!dom.placement || dom.placement.value != 'line')) {
text = stringDivider(text, 16, '\n');
}