viewport.fitBounds(bounds); //Ignores constraints
viewport.fitBoundsWithConstraints(bounds);
viewport.fitBoundsWithConstraints(bounds, true); //immediate
//Initially ignore constraints viewport.fitBounds(bounds); //Apply constraints after 1 second delay setTimeout(() => viewport.applyConstraints(), 1000);
Pick an overlay above to show the bounds