Changes for the CircleStyle inconsistency seen in #9395

Change hit detection test to reflect fix for #9395 CircleStyle inconsistency

Update ol/style/Circle and ol/style/RegularShapen tests
Revise test for no fill
Add test for transparent fill

Update Upgrade notes
Changes to hit detection with unfilled styles
This commit is contained in:
mike-000
2019-09-25 21:17:58 +01:00
parent e1d9f8dd59
commit e28fa56edd
5 changed files with 73 additions and 20 deletions

View File

@@ -393,23 +393,21 @@ describe('ol.renderer.canvas.VectorLayer', function() {
geometry: new Circle([7.5, 7.5], 1.5),
fillType: 'transparent'
}),
// CircleStyle transparent and no fill hit detection
// is currently the opposite of ol/Style
new Feature({
geometry: new Point([1.5, 1.5]),
fillType: 'transparent'
fillType: 'none'
}),
new Feature({
geometry: new Point([2.5, 2.5]),
fillType: 'transparent'
fillType: 'none'
}),
new Feature({
geometry: new Point([6.5, 1.5]),
fillType: 'none'
fillType: 'transparent'
}),
new Feature({
geometry: new Point([7.5, 2.5]),
fillType: 'none'
fillType: 'transparent'
})
]
});