Mapbox 映射框错误:图层.邮政编码.过滤器[2]:分支标签必须唯一

Mapbox 映射框错误:图层.邮政编码.过滤器[2]:分支标签必须唯一,mapbox,mapbox-gl,react-map-gl,Mapbox,Mapbox Gl,React Map Gl,有人能帮我解决这个错误吗 我在这样的图层上使用过滤器: 这将在mapbox gl绘制操作期间触发 map.setPaintProperty('postcodes', 'fill-color', '#e37d10'); map.setFilter('postcodes', ['in', ['get', 'name'], ["literal", filtered]]); 这由标记上的onClick事件使用 map.setFilter('postcodes', ['ma

有人能帮我解决这个错误吗

我在这样的图层上使用过滤器:

这将在mapbox gl绘制操作期间触发

map.setPaintProperty('postcodes', 'fill-color', '#e37d10');     
map.setFilter('postcodes', ['in', ['get', 'name'], ["literal", filtered]]);
这由标记上的onClick事件使用

map.setFilter('postcodes', ['match', ['get', 'name'], highlighting, true, false]);
这两种操作都在同一层上使用,用于用不同的颜色填充该层的背景色

 map.addLayer({
                'id': 'postcodes',
                'type': 'fill',
                'source': 'postcodes',
                'layout': {},
                'paint': {
                    'fill-color': '#088',
                    'fill-opacity': 0.8
                },
                'filter': ['match', ['get', 'name'], [''], true, false]
            });

我不确定,该错误有点令人困惑,因此如果有人能帮助我,我将不胜感激。

我确实确保突出显示数组具有唯一的条目。