Reputation: 389
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
Upvotes: 0
Views: 709
Reputation: 3802
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.
Upvotes: 3