0
votes

Is there a way to mask the whole map using a Mapbox GL Circle Layer? I cant find any examples or useful links.

I was able to add a mask layer using Mapbox GL GeoJSON layer

1
Could you share how you were able to mask the GeoJSON layer? - Tomelower

1 Answers

3
votes

There is no built-in functionality to do this in GL JS.

I recommend creating the circle mask in GeoJSON. turf-circle should make this relatively easy.