Dynamic label clipping

A noticable difference between print and web maps is the placement of labels that avoid overlap with map edges. By using a hidden symbol layer, Mapbox can dynamically hide labels close to a defined map edge.

Show clipped labels
Draw mask

Code: Github