Use ol.style.Stroke and ol.style.Fill instances in vector-layer example
This commit is contained in:
@@ -86,13 +86,13 @@ map.on('postcompose', function(evt) {
|
||||
if (highlight) {
|
||||
var render = evt.getRender();
|
||||
render.drawFeature(highlight, {
|
||||
stroke: {
|
||||
stroke: new ol.style.Stroke({
|
||||
color: '#f00',
|
||||
width: 1
|
||||
},
|
||||
fill: {
|
||||
}),
|
||||
fill: new ol.style.Fill({
|
||||
color: 'rgba(255,0,0,0.1)'
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user