[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

Automatic zoom and positioning doesn't work for geomasks
Closed, ResolvedPublic

Description

Automatic zoom and positioning no longer works when using a mapframe or maplink with "service": "geomask".

Example:

<mapframe width="400" height="400" align="center" text="Many geomasks.">
{
        "type": "ExternalData",
        "service": "geomask",
        "ids": "Q26835506,Q30919,Q1017201,Q979106,Q1030585,Q582899,Q24070750,Q24055697,Q571368,Q24069989,Q115553,Q115549,Q1638179,Q24067070,Q133642,Q32311,Q1309863,Q13080916,Q24050090,Q114395,Q11079799,Q2069208,Q1311882,Q2178230,Q660171,Q1818997,Q1094194,Q2299900,Q634933,Q1623372"
    }
</mapframe>

Event Timeline

@Pnorman is this something you can take a look at?

Based on the minimal description it's frontend. I'll be better able to say once the bug report has been expanded on.

Hey @Gareth - can you give us more details and specific links on how/where this is happening?

debt triaged this task as Medium priority.Oct 17 2017, 7:44 PM
debt added subscribers: Evad37, Yurik.

Ah...I see the conversation now (where this ticket came from): https://en.wikipedia.org/w/index.php?title=Template_talk:Maplink&oldid=805751717

map-link_chat.png (737×992 px, 320 KB)

Basically, what is happening is that when some of the maplink urls are created, they display a map that is completely zoomed out and the user doesn't know where to look.

This is also tied to the ticket that was created/fixed to add in the ability to use a simple lat/lng or a single WD Qid: T178321.

Here's a few examples. So basically this affects all maps that are based on a geomask unless both a zoom level and coordinates are explicitly specified.

Just confirming that this is still a bug.

Pnorman lowered the priority of this task from Medium to Low.Jun 26 2018, 4:32 PM

Are we sure this is just with wikidata ids etc ? I see something like this with even a simple .map page

<mapframe width=300 height=300 zoom=17>
{
  "type": "ExternalData",
  "service": "page",
  "title": "Haarlem/Grote Kerk.map"
}
</mapframe>

Rendered on nl.wp, as if it is located in Algeria instead of in Utrecht, Netherlands

@TheDJ That's a different problem specific to mapframe maps: T193455: <mapframe>: Automatic zoom and centering only works with interactive maps, not static maps. The problem with geomasks happens with both maplink and mapframe maps.

Change 579417 had a related patch set uploaded (by TheDJ; owner: TheDJ):
[mediawiki/extensions/Kartographer@master] Fix zoom of geomasks

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

TheDJ updated the task description. (Show Details)

Change 579417 merged by jenkins-bot:
[mediawiki/extensions/Kartographer@master] Fix zoom of geomasks

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

The auto zoom/positioning is not currently working for the static map thumbnails on English Wikipedia, see e.g. User:Evad37/Sandbox/Mapframe test

@Evad37: Thanks. Please file a new separate task for that problem, as the original topic in this issue was resolved several months ago.