我正在使用 ol3 中的向量层,并且对 API Docs 确实缺乏进行了罚款。
唯一可用的参考是ol.style中显示的默认样式
这是我到目前为止所拥有的,取自示例和跟踪和错误
style = [
new ol.style.Style({
image: new ol.style.Circle({
radius: Math.max(10*log10(size), 10),
stroke: new ol.style.Stroke({
width: 1.5,
color: '#fff'
}),
fill: new ol.style.Fill({
color: 'hsl(220,60%,60%)'
})
}),
text: new ol.style.Text({
text: size.toString(),
fill: new ol.style.Fill({
color: '#fff'
})
})
})
];
为什么会有数组?
如何更改字体大小?“字体大小”:和大小:没用
我应该查看其他一些文档吗?
我迷路了。