Page MenuHomePhabricator

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

Description

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.

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 https://github.com/azavea/Leaflet.zoomdisplay , http://azavea.github.io/Leaflet.zoomdisplay/ 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.