Mapbox Navigation Controls

Hi all,

Can someone show me how to add navigation control on to a mapbox map. I have looked at all the options in the weweb editor and it seems like it is not a configuration option.

I know this is the code (below) to add in javascript but I donlt know where to put it or how to call the map instance.

map.addControl(new mapboxgl.NavigationControl());

Thanks in adance for your help.

Wayne