Page MenuHomePhabricator

<mapframe>, <maplink>: adding nearby and layer controls in full-screen view
Open, LowPublic

Description

I ask to re-add the nearby and layers controls in full-screen map view in Wikivoyage mode. In the past they were available but anybody removed them. The controls should be placed on the left side because the right side is occupied by the map-details box.

This task was mentioned at Community-Wishlist-Survey-2017 (https://meta.wikimedia.org/wiki/2017_Community_Wishlist_Survey/Miscellaneous/Kartographer_improvements), which got the No.1 out of 214 proposals.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 19 2017, 2:42 PM
debt triaged this task as Normal priority.Nov 20 2017, 5:17 PM
debt edited projects, added Maps (Kartographer); removed Maps.

The problem occurs only for maps created by <maplink>. These maps are not yet available after loading a page but are opend by a user action.

It seems that the script MediaWiki:Kartographer.js is not applied to these maps.

@RolandUnger, can you please show an example map and screenshot of what you're talking about?

The first image shows a map generated by the <mapframe> tag. The red arrows show the nearby and layers controls. The blue arrow shows the full-screen control. After clicking on it the map is magnified to full-screen mode.

After pressing the full-screen control both nearby and layers controls are still present.

On the third image you can see a numbered map marker generated by <maplink> tag. After clicking on it a full-screen map appear.

The full-screen map has neither nearby nor layers controls. These controls usually were generated by the MediaWiki:Kartographer.js script. That means it was not called.

At the German Wikivoyage I created the https://de.wikivoyage.org/wiki/MediaWiki:MapTools.js script. It replaces the original <a href> tag by a JavaScript click event which generates a full-screen map with both controls.

Ah, thank you for explaining @RolandUnger . I see the inconsistency now. You would like to get the layer and nearby controls in expanded view when the map is called through a maplink command. I'll bring this to the Triage team's attention and we'll see what it would take to make the fix.

Mholloway lowered the priority of this task from Normal to Low.Oct 2 2018, 3:05 PM
Mholloway moved this task from Unsorted to Wikivoyage on the Maps (Kartographer) board.