【解决办法】设置text-color参数即可,参数介绍如图:
参考代码如下: map.addLayer({ "id": 'ponint0', "type": "symbol", "source": "marker", "layout": { "icon-image": "positionPoint0", "icon-size": 0.6, "text-field": "{name}", }, "paint": { "text-color": '#ffffff', }, });