We are in the middle of a 3.x to 4.3 port. Got to the Overview Widget and had to roll my own. But it's got issues. Seems if I add a layer to my overview, it messes with my main map.
JS Bin - Collaborative JavaScript Debugging
The JS Bin as it is now, works. Look for the line:
var overviewMap = new Map({
// UNCOMMENT ME
// layers: [ovLayer],
basemap: "topo"
});
and add that layer back in.
var overviewMap = new Map({
layers: [ovLayer],
basemap: "topo"
});
It makes the main map go wonky.
Thoughts? I'm out of ideas.