ol.style.Stroke has no "opacity" option

This commit is contained in:
Éric Lemoine
2015-09-21 20:44:32 +02:00
parent 7896350fe4
commit 4f45bbc05d

View File

@@ -72,8 +72,7 @@ function flash(feature) {
snapToPixel: false,
stroke: new ol.style.Stroke({
color: 'rgba(255, 0, 0, ' + opacity + ')',
width: 1,
opacity: opacity
width: 1
})
});