So far, we've taken for granted that we will zoom in/out when clicking on plus or minus buttons. We haven't discussed much about what actually is behind the map interaction when you use buttons. The
ol.control namespace contains numerous classes that make our maps interactive, in particular to configure behavior on your map. There are many built-in controls, each with their own unique functions. You can easily customize them with a CSS style or other parameters. Contrary to interactions, controls depend on DOM elements and not keyboard and mouse input only.
In this chapter, we'll cover the following topics:
ol.controlclasses and their organization