6
如何爲mapbox-gl ..中的圖層文本字段添加背景顏色或如何完成,以便在文本字段上有背景框如何在mapbox-gl中爲圖層文本字段添加背景顏色
map.addLayer({
"id": "markers",
"type": "symbol",
"source": "markers",
"layout": {
"icon-image": "{marker-symbol}-15",
"text-field": "{title}",
"text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"],
"text-offset": [0, 0.6],
"text-anchor": "top"
}
});