The width= parameter of mapframe expects map width in pixel. We would like to give it in percentage of pagewidth (something like width:95%) to allow page-wide maps that are automatically adjusted to the screen size. See current implementation in Russian Wikivoyage:
https://ru.wikivoyage.org/wiki/Блед
(click on "Открыть карту" on the right side of the page)
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Trims attributes, add width with % to <mapframe> | mediawiki/extensions/Kartographer | master | +16 -7 |
Event Timeline
Comment Actions
Change 281540 had a related patch set uploaded (by MaxSem):
Allow specifying <mapframe> width as percentage
Comment Actions
Relative sized windows also significantly improves the usability of these maps on mobile devices, whereas absolute sizes can cause difficulties.
Comment Actions
Change 281540 merged by jenkins-bot:
Trims attributes, add width with % to <mapframe>
Comment Actions
My only concern with this task is that on mobile we might want width=100%, and on desktop, it would be something like 30%. I wonder if mobile should have a special handling for the maps.
Comment Actions
@Yurik: I tried it here:
https://ru.wikivoyage.org/wiki/User:Atsirlin/maps
and it does not work. Does the software need more time to update?