With the JavaScript class Kartographer.Box.MapClass you can dynamically create maps. It is possible to specify if a Scale or OpenFullScreen control is needed. But impossible to add a Close control. Nearby and Layers controls are added by Kartographer.js ( hooking wikipage.maps ).
At the German Wikivoyage you can use the globe indicator to add a map on demand.
The Close control cannot be added by a Kartographer.Box.MapClass property. We are using a client JavaScript https://de.wikivoyage.org/wiki/MediaWiki:MapTools.js to add a control using the jQuery library. We need the Close control to remove the map.