Create a Traffic Control This sample shows how to create a custom traffic control that can be added to the map. In this case a control for toggling the visibility of traffic data overlaid on top the map.