AFAIK, Google Maps does not support a direct way to display a country or any other geographical area.
The usual solution for this is to limit the viewport to a certain latlng range. An example is checking the center of a map after dragging / zooming. If the center extends beyond the borders, scroll back to the edge of the borders.
Tomik source
share