Line Dash offset
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 928 B After Width: | Height: | Size: 1013 B |
Binary file not shown.
|
Before Width: | Height: | Size: 515 B After Width: | Height: | Size: 590 B |
Binary file not shown.
|
Before Width: | Height: | Size: 549 B After Width: | Height: | Size: 274 B |
@@ -91,6 +91,23 @@ describe('ol.rendering.style.LineString', function() {
|
||||
})
|
||||
}));
|
||||
vectorSource.addFeature(feature);
|
||||
|
||||
feature = new ol.Feature({
|
||||
geometry: new ol.geom.LineString(
|
||||
[[-20, -15], [-2, 5], [15, -15]]
|
||||
)
|
||||
});
|
||||
feature.setStyle(new ol.style.Style({
|
||||
stroke: new ol.style.Stroke({
|
||||
color: '#000000',
|
||||
width: 2,
|
||||
lineCap: 'square',
|
||||
lineDash: [4, 8],
|
||||
lineDashOffset: 6,
|
||||
lineJoin: 'round'
|
||||
})
|
||||
}));
|
||||
vectorSource.addFeature(feature);
|
||||
}
|
||||
|
||||
it('tests the canvas renderer', function(done) {
|
||||
|
||||
Reference in New Issue
Block a user