Fix decluttering on VectorImage layers

This commit is contained in:
ahocevar
2019-05-05 14:34:17 +02:00
parent 1142caf5e8
commit 6c8c8a6477
9 changed files with 35 additions and 24 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -93,7 +93,7 @@ layer2.setStyle(function(feature) {
zIndex: feature.get('zIndex'),
text: new Text({
text: feature.get('text'),
font: 'italic bold 16px Ubuntu'
font: 'italic bold 18px Ubuntu'
})
});
});
@@ -123,7 +123,7 @@ layer3.setStyle(function(feature) {
}),
text: new Text({
text: feature.get('text'),
font: 'italic bold 16px Ubuntu',
font: 'italic bold 18px Ubuntu',
textBaseline: 'bottom',
offsetY: -12
})
@@ -156,7 +156,7 @@ line.setStyle(new Style({
text: new Text({
placement: 'line',
text: 'east-west',
font: 'italic bold 16px Ubuntu',
font: 'italic bold 18px Ubuntu',
overflow: true
})
}));