Openlayers 3 linedash画虚线
虚线样式如下
new ol.style.Style({
fill: new ol.style.Fill({
color: '#0044CC'
}),
stroke: new ol.style.Stroke({
//lineJoin:'bevel',
lineDash:[1,2,3,4,5,6],
color: '#0044CC',
width: 4
})
})
linedash属性值类型是Array,随意改改可看到不同的虚线效果