Make wrap work with points
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user