0

I am trying to add a fog layer in my iOS app using Mapbox SDK, however so far without success. I would like to use this to achieve the effect of partially hiding distant map content to achieve a better 3D effect at camera pitch 90. Adding the sky layer was simple enough, but cannot see how to add a fog layer.

Thanks.

2Jam
  • 37
  • 5

1 Answers1

1

to achieve this you can take a look at Atmosphere

var atmosphere = Atmosphere()
// code to configure Atmosphere here
try mapView.mapboxMap.style.setAtmosphere(atmosphere)

3D Terrain with fog

Mai Mai
  • 614
  • 5
  • 10
  • Thanks, that seems to work. Just need to have a play around with the parameters now. – 2Jam Jan 14 '23 at 17:41