什么控制功能标签是否会显示?无论缩放级别和与另一个特征的相对距离如何,我都想强制显示特征标签。幕后发生了一些神奇的事情,随着缩放级别的降低(平移),标签会消失。有没有办法覆盖这个?
https://openlayers.org/en/latest/examples/vector-labels.html
我认为declutter选项可以设置为false,但是它也没有这样做:
https://openlayers.org/en/latest/examples/vector-label-decluttering.html
迈克找到了答案。在ol.style.Text中,设置选项(overflow:true)。