0
我試圖在OL3中爲我的圖標標籤創建多行。我需要創建一個四行標籤。我看到一個問題here,但沒有解決問題的答案。 OL3現在是否爲此提供解決方案?我'\ n'不工作,我找不到辦法。多行標籤OpenLayers3
point= new ol.style.Style({
image: new ol.style.Icon({
src: 'img/point.ico'
}),
text: new ol.style.Text({
font: '12px Calibri,sans-serif',
fill: new ol.style.Fill({ color: color }),
stroke: new ol.style.Stroke({
color: '#fff', width: 2
}),
text: "Text /n More Text /n Even More /n Last Line"
})
});
謝謝,任何幫助或鏈接都非常感謝!