Only split text at line angle changes

This commit is contained in:
Andreas Hocevar
2017-11-02 19:51:47 +01:00
parent ddba26b193
commit 431d570b91
7 changed files with 153 additions and 123 deletions

View File

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