Aravind
Aravind

Reputation: 389

Mask the map with a mapbox gl circle layer

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

Answers (1)

Lucas Wojciechowski
Lucas Wojciechowski

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

Related Questions