Fix MapViewer application

The commit 32f2fb24 break the MapViewer by changing how the MapControl
is called.