Another different and drastic way to change the look of our applications is to place the controls outside the map and attach them to our own components.
Most of the OpenLayers controls have two features:
To achieve the goal of this recipe, the idea is to separate the visualization from the action that the control does. This way, we can create some buttons and activate or deactivate a control depending on the button that is pressed:
As we can see in the screenshot, we are going to create a toolbar ...