Page MenuHomePhabricator

Fix vector map visualisations once the user clicks them on an article
Open, Needs TriagePublic

Description

(WARN: Probably duplicated, didn't really get to find out because Phabricator's flow is not really friendly.)

Right now a given user can spot a map in an article (let's say https://es.wikipedia.org/wiki/Fuente_D%C3%A9). Once the user clicks on it the SVG is displayed with no label on it, making it unusable and not offering the expected behaviour.

Steps to Reproduce
Click on a map inside an article.
Actual Results
No label is displayed over an empty map.
Expected Results
The same labels that appear on the thumbnail.

Event Timeline

Adrpz created this task.Jul 3 2017, 10:14 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 3 2017, 10:14 AM
debt added a subscriber: debt.Jul 3 2017, 8:27 PM

I'm not sure this is anything that we can fix as the svg is not using our mapping service.

Pnorman added a subscriber: Pnorman.

I don't think it's related to the maps team as it's all SVGs, not maplink, mapframe, or anything like that. It's certainly Map-Styles. Unfortunately, I'm not sure who to suggest.

matmarex added a subscriber: matmarex.

This is because of how location maps on most Wikimedia wikis are built (a static image of a map, with a separate image of the "dot" placed on top of it at the right position). I'm not sure if you're talking about MultimediaViewer (https://es.wikipedia.org/wiki/Fuente_Dé#/media/File:EspañaLoc.svg) or the plain file page (https://commons.wikimedia.org/wiki/File:EspañaLoc.svg), but in both cases it's not really possible for the existing software to do anything smarter about this.

For MultimediaViewer, there was an old task about this (T64572), declined as basically impossible.

In the long term, location maps should be replaced by something fancier, which would also allow us to properly display "zoomed in" versions and so on (T120809). For example, see https://www.mediawiki.org/wiki/Help:Extension:Kartographer#.3Cmapframe.3E_usage. This is not enabled on Spanish Wikipedia yet though; if your community would like to be early adopters, you can probably file a request to enable it here on Phabricator (see https://meta.wikimedia.org/wiki/Requesting_wiki_configuration_changes). You would still need to do some work to convert the current location map system used on the wiki, whatever it is, to kartographer's <mapframe> tags.

fdans removed fdans as the assignee of this task.Sep 7 2018, 2:26 PM
fdans added a subscriber: fdans.