This example shows a map viewer and the OverviewMap plugin configured with a WMS layer.
The js is not minified so it is readable. See viewer-overviewmap.js.