Page MenuHomePhabricator

Render "nearby" layer with popus in dynamic maps
Closed, ResolvedPublic3 Estimated Story Points

Description

Take the geojson for nearby articles and overlay on a map. This may already be possible using existing code.

  • When clicking the Show nearby articles button render the results of the geosearch query on the map
  • Clicking again hides the "nearby" layer
  • When a marker is clicked, a pop-up appears with the article name shown as a linked title and a description and preview image
  • If there's a mechanism for encapsulating the points in a layer, we should pursue that. Simply injecting the GeoJSON is also an option but maybe not the best.
  • Seems there's no good mechanism for that atm

Event Timeline

thiemowmde set the point value for this task to 8.Apr 13 2022, 12:55 PM

Change 780870 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/Kartographer@master] [WIP] Convert nearby results to GeoJSON and render

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

awight moved this task from Doing to Sprint Backlog on the WMDE-TechWish-Sprint-2022-04-13 board.

Needs more work to style the markers and show popups with thumbnail. We might end up using PruneCluster after all.

Change 781037 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/Kartographer@master] Nearby: render a popup with thumbnail and article link

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

Needs some test fixups to make QUnit happy.

Change 780870 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Convert nearby results to GeoJSON and render

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

Change 785307 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):

[mediawiki/extensions/Kartographer@master] Add popups for the nearby markers

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

Change 785307 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Add popups for the nearby markers

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

Change 781037 abandoned by Awight:

[mediawiki/extensions/Kartographer@master] Nearby: render a popup with thumbnail and article link

Reason:

Superceded by Ic8e36d4ee43450cda5e30bb9fbc2c161bf87e8ce

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

WMDE-Fisch renamed this task from Render "nearby" layer in dynamic maps to Render "nearby" layer with popus in dynamic maps.Apr 26 2022, 11:01 AM
WMDE-Fisch updated the task description. (Show Details)
WMDE-Fisch moved this task from Tech Review to Demo on the WMDE-TechWish-Sprint-2022-04-13 board.
WMDE-Fisch changed the point value for this task from 8 to 3.
WMDE-Fisch moved this task from Demo to Done on the WMDE-TechWish-Sprint-2022-04-13 board.

Change 835119 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Consider thumbnail width/height when rendering nearby popups

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

Change 835119 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Consider thumbnail width/height when rendering nearby popups

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

Change 875357 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Nearby: Must link images to Commons for legal reasons

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