Page MenuHomePhabricator

Clicking on mapframe static map (or maplink link) in apps doesn't launch dynamic map
Open, LowPublic

Description

mapframe map

  1. In the iOS or Android app, go to the Catalan Wikipedia article for San Francisco. (mapframe is enabled on ca.wiki).
  2. In the info box, you'll find a static map that was generated by mapframe.
  3. Click on the map

Expected behavior: launch a dynamic map, probably in a web browser. (An "expand" icon should also appear in the upper-right corner of the static map).
Actual behavior: go to the "no javascript" fallback for the maps page, showing the coordinates of where you clicked.

maplink map

The results here are the same if you click on a "maplink" (a related featured to mapframe, but the map is not embedded on the page; it's just a link on the page that opens a map in a popup).

  1. E.g., go to this article of Bays Precinct
  2. Click on the link in the upper-right corner of the page.

Collaboration team plans to bring mapframe maps to literally hundreds of Wikipedias, including English, in May. This new capability willl surely raise the profile and usage of mapframe and maplink maps. Without the dynamic map, a huge portion the advantage mapframe and maplink maps bring is missing. Please consider same for this ticket ( and related ticket ) as you prioritize ios tassks for action.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Regarding behavior of link coordinates - clicking on the link will redirect to https://tools.wmflabs.org/geohack/geohack.php?pagename=San_Francisco&language=ca&params=37.766667_N_-122.433333_E_ . Currently this behavior is consistent between desktop/mobile(wmf.1) and iPhone app (5.8.0(1393)).

The screenshot is for iPhone (6S) app:

IMG_4716.PNG (1×640 px, 367 KB)

Another example of a page with a #maplink
https://en.wikipedia.org/wiki/Silver_Comet_Trail

The HTML we get from
https://en.wikipedia.org/api/rest_v1/page/html/Silver_Comet_Trail

<span style="font-size: small;" id="coordinates" about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"maplink","href":"./Template:Maplink"},"params":{"display":{"wt":"inline,title"},"type":{"wt":"line"},"text":{"wt":"Map Trail&apos;s Path"}},"i":0}}]}'><a class="mw-kartographer-maplink" mw-data="interface" data-style="osm-intl" href="/wiki/Special:Map////en" data-overlays='["_eac655fa6529e63b85da3c959eed97c648946393"]' typeof="mw:Extension/maplink" about="#mwt27" data-mw='{"name":"maplink","attrs":{"text":"Map Trail&apos;s Path"},"body":{"extsrc":"{\"properties\":{\"stroke-width\":6,\"stroke\":\"#ff0000\",\"title\":\"Silver Comet Trail\"},\"type\":\"ExternalData\",\"service\":\"geoline\",\"ids\":\"Q7515926\"}"}}'>Map Trail's Path</a><span about="#mwt27">
</span><link rel="mw:PageProp/Category" href="./Category:Pages_with_maps" about="#mwt27"/></span><a class="mw-kartographer-maplink" mw-data="interface" data-style="osm-intl" href="/wiki/Special:Map////en" data-overlays='["_eac655fa6529e63b85da3c959eed97c648946393"]' typeof="mw:Extension/maplink" about="#mwt2" data-mw='{"name":"maplink","attrs":{"text":"Map Trail&apos;s Path"},"body":{"extsrc":"{\"properties\":{\"stroke-width\":6,\"stroke\":\"#ff0000\",\"title\":\"Silver Comet Trail\"},\"type\":\"ExternalData\",\"service\":\"geoline\",\"ids\":\"Q7515926\"}"}}'>Map Trail's Path</a>

And from mobileview:

<span style="font-size: small;" id="coordinates"><a class="mw-kartographer-maplink" mw-data="interface" data-style="osm-intl" href="/wiki/Special:Map////en" data-overlays='["_eac655fa6529e63b85da3c959eed97c648946393"]'>Map Trail's Path</a></span><a class="mw-kartographer-maplink" mw-data="interface" data-style="osm-intl" href="/wiki/Special:Map////en" data-overlays='["_eac655fa6529e63b85da3c959eed97c648946393"]'>Map Trail's Path</a></p>

@Jdlrobson @ssastry This seems not to be expanded in Parsoid and Mobile View APIs… ideas why?

RHo renamed this task from Clicking on mapframe static map (or maplink link) in iOS app doesn't launch dynamic map to Clicking on mapframe static map (or maplink link) in apps doesn't launch dynamic map.May 15 2018, 4:35 PM
RHo updated the task description. (Show Details)

@JoeWalsh, sorry for the late response. I'm not sure the Page Library would be appropriate since both native apps offer native maps which should probably be favored over the web versions.

Vvjjkkii renamed this task from Clicking on mapframe static map (or maplink link) in apps doesn't launch dynamic map to j1daaaaaaa.Jul 1 2018, 1:13 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from j1daaaaaaa to Clicking on mapframe static map (or maplink link) in apps doesn't launch dynamic map.Jul 2 2018, 4:34 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.