I\'ve got this button:
function initMap() { map.addControl(zoomToExtentControl); }; zoomToExtentControl = new ol.control.ZoomToExtent({ extent: routeExtent