Я использую Mapbox GL JS с базовым слоем Mapbox Streets. Я добавил полигональный слой с белыми границами и прозрачной заливкой, но мне трудно читать метки базовой карты под полигональным слоем. Посмотрите, как этикетки покрыты белыми рамками:
Есть ли способ убедиться, что метки находятся поверх полигонального слоя или, по крайней мере, не закрыты им?
Мой код выглядит так:
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v9',
center: [-2.839, 54.579],
zoom: 4
});
map.on('load', function () {
map.addSource('constituencies', {
'type': 'vector',
'url': 'mapbox://pcsu.xxx'
});
var constituencyLayer = map.addLayer({
'id': 'constituencies',
'source': 'constituencies',
'source-layer': 'constituencies',
'type': 'fill',
'paint': {
'fill-color': 'rgba(162,181,205,0.6)',
'fill-outline-color': 'white'
},
'layout': {
'visibility': 'visible'
}
});