通过openlayers绘制多边形(网格,都是同样大小的正方形),没有设置stroke,但有的网格连接处会显示线条,请问如何不显示?
style: function (feature, resolution) {
let style;
if (feature.values_.gridcolor) {
let color = `rgba(${feature.values_.gridcolor[0]},${feature.values_.gridcolor[1]},${feature.values_.gridcolor[2]},0.6)`;
style = new ol.style.Style({
fill: new ol.style.Fill({
color: color
}),
text: new ol.style.Text({
font: '12px sans-serif',
placement: 'point',
text: feature.values_.text
})
});
}
return style;
}