Adding or removing map controls Displaying a zoom control on a map The following code example creates a zoom control on a map.