-1

I've created a Mapbox-gl map with a globe projection. I then use map.setFog({}) to add the fog effect.

Is there a way to clear the fog by changing the settings or remove it entirely from the map?

Thanks

RichardZ
  • 345
  • 2
  • 6
  • 18

1 Answers1

1

yes it is possible to change/remove fog from map, if you want to remove fog completely just use map.setFog(null).

Note: map.setFog({}) will set fog to mapbox default fog settings.

Dildar Khan
  • 101
  • 5