3D Terrain Masks

With the release of Mapbox GL JS V2, creating dynamic 3D terrain masks has never been easier.

For this experiment I used geojson.io and Tristen's inverted polygon app to create the mask, which can then be added like any other geojson layer.

Future Modeā„¢ uses Turf to draw a hex grid, which conforms to the 3D elevation data nicely.

Future Mode

By: MapTO

Code: Github