Page MenuHomePhabricator

Too small Kartographer map width
Closed, ResolvedPublic

Description

Since about one week the width of a map created by the Kartographer extension and mapframe tag is to small. It is reduced by 10px as compared to the width specified in the tag. 10px seems to be equal to the width of two borders and a padding, twice used. Because of the identical look both of images and maps they should behave in the same manner.

The map shown by the image was created by a call similar like

<mapframe width=300 height=300 zoom=13 longitude=31.1442 latitude=29.1828 name = "Lageplan von Dalāṣ" />

It should be considered that the map border is not part of the map but should be placed outside the map. The inner width (without borders and padding) should be identical to the value specified.

F31704466

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 27 2020, 5:43 AM

i'll take a look.

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

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

TheDJ triaged this task as Unbreak Now! priority.Mar 30 2020, 6:55 PM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptMar 30 2020, 6:55 PM

Change 583922 merged by jenkins-bot:
[mediawiki/extensions/Kartographer@master] Fix width of mapframes

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

Jdforrester-WMF closed this task as Resolved.Mar 30 2020, 10:49 PM