有没有办法改变 mapbox-gl-js 图标图像的颜色?
此代码取自https://www.mapbox.com/mapbox-gl-js/example/geojson-markers/不会将标记颜色更改为红色
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"
},
"paint": {
"text-size": 12,
"icon-color" : "#ff0000"
}
});
我已经尝试了官方文档中列出的所有选项