My question is concerning the placement of this code. This code should be in a widget, similar to the original BaseMap switcher, although evidently lacks the correct "hook" into the map extent. However if put the code into the HeaderControllerWidget, a seperate map appears, but the code works. Can anyone fill in my gap of understanding?