Replaces remaining vectorimage.tests.js

Transforms the old rendering tests for the VectorImageLayer
decluttering to the new rendering test approach.
This commit is contained in:
Kai Volland
2019-03-21 15:18:10 +01:00
parent 5665da6518
commit 681a8f1d9c
14 changed files with 104 additions and 226 deletions

View File

@@ -90,7 +90,7 @@ layer2.setStyle(function(feature) {
return new Style({
text: new Text({
text: feature.get('text'),
font: '12px "Ubuntu Regular", sans-serif'
font: '16px "Ubuntu Regular"'
})
});
});
@@ -119,7 +119,7 @@ layer3.setStyle(function(feature) {
}),
text: new Text({
text: feature.get('text'),
font: '12px "Ubuntu Regular", sans-serif',
font: '16px "Ubuntu Regular"',
textBaseline: 'bottom',
offsetY: -5
})
@@ -151,7 +151,8 @@ line.setStyle(new Style({
text: new Text({
placement: 'line',
text: 'east-west',
font: '12px "Ubuntu Regular", sans-serif'
font: '16px "Ubuntu Regular"',
overflow: true
})
}));
source4.addFeature(point);