1
openlayers 4+のol.style.Textクラスに複数のフォント色を設定する方法はありますか?私は「他のテキスト」の長さや幅が不明であるとtextAlignが中央に設定する必要がありますので、複数の色のOpenlayers ol.style.Text
const label = new ol.style.Style({
text: new ol.style.Text({
text: '<color1>X</color1> other text',
textAlign: 'center',
font: '11px roboto,sans-serif',
fill: new ol.style.Fill({
color: 'white'
}),
stroke: new ol.style.Stroke({
color: 'black',
lineCap: 'butt',
width: 4
}),
offsetX: 0,
offsetY: 25.5,
})
ような何かをしようとしています
、私は2つのol.style.Textクラスと位置を追加することはできませんそれらを並べて事前