Restricting Google Map Bounds

Is it possible to restrict the area that a map shows? I’d like to restrict a map from only showing a certain grouping of States in the United States. It should behave something like this: https://developers.google.com/maps/documentation/javascript/examples/control-bounds-restriction

Or, an example of what I’d like to do is seen at https://www.sdgrazingexchange.com/.

Any help would be amazing. Thanks!