Page MenuHomePhabricator

[MEX] Format a simple statement using a Globe coordinate datatype
Closed, ResolvedPublic

Description

Update the formatting of a statement in the MEX view to match the prototype, but apply it for a Globe coordinate datatype:

Current display:

image.png (335×336 px, 68 KB)

Expected formatting (please note that this has a reference, but should be replicated without any references)

image.png (470×577 px, 133 KB)

Figma file

Acceptance Criteria

  • Statement should appear with the same formatting as the prototype for a Globe coordinate datatype

Notes
This is a read only so no edit links need to be cliackable.

Event Timeline

Change #1175147 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[mediawiki/extensions/Wikibase@master] [WIP] geocoordinates

https://gerrit.wikimedia.org/r/1175147

It might be out of scope for this iteration, but the current figma design doesn't specify anything about the interactivity of the map. Are there already ideas about how this would work, and how it should differ from the current behavior?

Open Questions
  • In the existing desktop view....
    • the map is interactive. It is zoomable via the + and - controls, and can be moved via clicking and dragging. The mobile design lacks the controls. Should the mobile version be a static image? Or should this functionality be accessible via touch gestures?
    • clicking the square icon in the upper right opens up a full-screen map. Should the mobile version have this functionality? If so, how? (the design does not include an icon)
    • the map has an overlay at the bottom with copyright info, scale info, and a link to Wikimedia maps. This isn't shown in the mobile design. Is this intentional?
      • image.png (52×493 px, 27 KB)
  • In the Figma design..
    • the coordinates are styled like a link. What should happen when the user clicks/taps it?

cc: @Alice.moutinho for UX and @Arian_Bozorg for Product perspectives

Change #1175147 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Statements with Globe Coordinate datatype

https://gerrit.wikimedia.org/r/1175147

I think the first iteration of this is ready for tech (or product?) verification, though we’ll want more follow-up work later.

Notes on getting Kartographer working locally:

  • install extensions Kartographer and JsonConfig
  • configure Kartographer-related settings in LocalSettings.php, including choosing a tile server for the map images.

these are my settings:

wfLoadExtension( 'JsonConfig' );
wfLoadExtension( 'Kartographer' );
$wgKartographerMapServer = 'https://tile.openstreetmap.org';
$wgKartographerDfltStyle = '';
$wgKartographerSrcsetScales = []; /* Because no support for HiDPI tiles */
$wgKartographerSimpleStyleMarkers = false;
$wgWBRepoSettings[ 'useKartographerGlobeCoordinateFormatter' ] = true;
$wgWBClientSettings[ 'useKartographerGlobeCoordinateFormatter' ] = true;
$wgWBClientSettings[ 'useKartographerMaplinkInWikitext' ] = true;