Page MenuHomePhabricator

Adding a close control property to Kartographer.Box.MapClass
Open, LowPublic


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 to add a control using the jQuery library. We need the Close control to remove the map.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 19 2018, 3:43 PM

@jmatazzoni small tickets like these for instance.

I think it makes sense to add also a zoom-level control property; not only in edit mode. See for instance , and T140210. This control should be presented on all maps by default.

Mholloway triaged this task as Low priority.Aug 21 2018, 3:19 PM
Mholloway edited projects, added Maps (Kartographer); removed Maps.
TheDJ added a comment.Mar 13 2020, 9:06 PM

or just create your own leaflet control like that class did. The close icon class is part of the style module oojs-ui.styles.icons-interactions