Module:Mapframe is permanently protected from editing because it is a heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use ((edit template-protected)) to notify an administrator or template editor to make the requested edit.
|
This is the talk page for discussing improvements to the Mapframe module, and the related Maplink template. |
|
Archives: 1, 2Auto-archiving period: 150 days |
Frequently asked questions (see also: mw:Help:Extension:Kartographer) Q1: Where to file a bug report when there is a problem with the base map? (e.g. a missing lake)
A1: If the problem also occurs on OpenStreetMap, it needs to be fixed there. If the problem is only on Wikimedia's maps, it can be reported on Phabricator (you can log in with you Wikipedia account). See mw:How to report a bug for instructions (for the tags, use Maps). (Alternatively, you can try mw:Help talk:Extension:Kartographer) Q2: Where to report other bugs or problems with the maps?
A2: This may be a problem with the Wikipedia module, or it may be an underlying software bug (there are lots of those).
Q3: Why does the thumbnail map render as a static image when viewing pages, but is interactive when editing pages?
A3: On Wikipedia, and most wikis other than Wikivoyage, the emdeded thumbnail is a static map, and the full screen map needs to be opened before the map can be zoomed or panned. This is for for performance reasons, and to present some content if javascript is disabled, and for printing. That preview mode shows an interactive map is a bug, phab:T203863 (and also a performance issue). Further explanation can be found in the comments on phab:T202793. Q4: Why is a line or shape feature from OpenStreetMap not being shown?
A4: There are several possible causes:
Q5: Why are line, shape, or point features are not shown after editing or adding a map, even though they were shown in the page preview?
A5: This is a bug related to generating thumbnail map images. It should fix itself in an hour or two. See phab:T269984 for details. Q6: A page using mapframe's
|raw= parameter is showing error messages of "The time allocated for running scripts has expired." What can be done?A6: If the amount of raw data to be processed is too large, that timeout message may be shown. You can try moving the raw data to Commons (example) or replacing the mapframe template with the equivalent wikitext using Special:ExpandTemplates (example) |
To help centralise discussions and keep related topics together, Template talk:Maplink and related subpages redirect here |
Hi, I would like to request that this template, together with its dependencies be copied over to the Bulgarian wiki. There are a lot of pages that would benefit from it and there is currently no alternative template to use. The parameters can be left as is, but if needed I can translate them over.
Is it just me or does infobox mapframe not work at Sokolac Fortress (Bihać)? I don't see why, it links to https://www.wikidata.org/wiki/Q25555219 which in turn links to https://www.openstreetmap.org/relation/14304925 so it all seems fine...? --Joy (talk) 09:57, 23 February 2024 (UTC)
|point=on
or |coord=<coords...>
to show a marker. However, the map was centring on 0,0 coordinates in the Atlantic Ocean.type
parameter for the shape on OSM needs to be one of four (mw:Help:Extension:Kartographer/OSM#How to get a single object from multiple lines) that causes the shape to be migrated across and so be available. I figured it is nicer to have that available than a simple marker, and set type
as boundary. Regards, The Equalizer (talk) 21:37, 24 February 2024 (UTC)
I'd like to switch between several different .map files depicting the same region in different times. I tested the template:switcher and the switch function described in the template:mapframe docs. Neither of them worked. The template:switcher just resulted in 3 identical maps (the first of the three maps). The template:mapframe switch function resulted in a map without the associated shapes on top. But it's possible I did it wrong. Here's the code segment for that attempt:
((maplink|frame=yes|plain=yes|from=SWITCH:Wisconsin's 1st Assembly district (2024–2031).map,Wisconsin's 1st Assembly district (2022–2023).map, Wisconsin's 1st Assembly district (2011–2021).map|frame-height=300|frame-width=400|frame-latitude=44.8|frame-longitude=-88|zoom=7|overlay-horizontal-alignment=right|overlay-vertical-alignment=bottom|overlay=[[File:2024 WI Asm 01.svg|100px]]|switch=From 2024 to 2031, From 2022 to 2023, From 2012 to 2021 ))
I also tried adding overlapping shapes in the same map file and trying to switch by ID. That threw errors. Anyone done or seen something like this before? If I can see a working version I can probably reconstruct it. -- Asdasdasdff (talk) 22:37, 1 March 2024 (UTC)
((Switcher))
instead to allow an overlay:(Remove any colons seen) :((switcher| :((maplink|frame=yes|plain=yes|from=Wisconsin's 1st Assembly district (2024–2031).map|frame-height=300|frame-width=400|frame-coord=((coord|44.8|-88))|frame-longitude=-77.2|zoom=7|overlay-horizontal-alignment=right|overlay-vertical-alignment=bottom|overlay=[[File:2024 WI Asm 01.svg|100px]] :)) :|A - From 2024 to 2031 :|((maplink|frame=yes|plain=yes|from=Wisconsin's 1st Assembly district (2022–2023).map|frame-height=300|frame-width=400|frame-coord=((coord|44.8|-88))|frame-longitude=-77.2|zoom=7|overlay-horizontal-alignment=right|overlay-vertical-alignment=bottom|overlay=[[File:2024 WI Asm 01.svg|100px]] :)) :|B - From 2022 to 2023 :|((maplink|frame=yes|plain=yes|from=Wisconsin's 1st Assembly district (2011–2021).map|frame-height=300|frame-width=400|frame-coord=((coord|44.8|-88))|frame-longitude=-77.2|zoom=7|overlay-horizontal-alignment=right|overlay-vertical-alignment=bottom|overlay=[[File:2024 WI Asm 01.svg|100px]])) :|C - From 2011 to 2021 :))
While the preview works for both static rendered images behave differently.
I have raised a bug(T359705). This comment is to demonstrate the issue. Arjunaraoc (talk) 05:40, 9 March 2024 (UTC)
Surprisingly, the static image for data in sub directory was not updated even after two days, when I tested in actual article page.
Hi, is there any way to place textual markers? For example to show different faculties of Sharif university we need textual markers, i.e., for:
Hooman Mallahzadeh (talk) 07:23, 12 April 2024 (UTC)
((mapframe
|frame=yes
|plain=yes
|width=250|height=200
|type=shape-inverse
|id=Q2096604
|title=Shape
|description=Desc of shape
|frame-coord=((coord|35.703|51.351|display=i))
|zoom=14
|stroke-width=1
|type2=point|coord2=((coord|35.7062|51.3495))|title2=Point A|description2=Description of point A|marker2=college
|type3=point|coord3=((coord|35.7061|51.3510))|title3=Point B|description3=Description of point B
|type4=point|coord4=((coord|35.7020|51.3519))|title4=Point C|description4=Description of point C|marker4=college
))
I hope this is the right venue. Why do some maps, e.g. at Merkin Hall and Metropolitan Opera House (Lincoln Center) (see right), show some landmarks, e.g. Linkoln Skver, Kolambus Serkl, Hels Kičen, Lenoks Hil …, in a language that may be Slovenian or another Slavic language? -- Michael Bednarek (talk) 12:05, 8 May 2024 (UTC)