Module talk:Mapframe
| Module:Mapframe is permanently protected from editing as 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: 5 months |
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 centralize discussions and keep related topics together, Template talk:Maplink and related subpages redirect here |
Inconsistent map box
[edit]The same source produces a correct result on User:OceanLoop/sandbox/map but not Indian Creek (Elwha River tributary): the frame is not positioned properly. Does anyone know why this happens? OceanLoop (talk) 00:55, 24 July 2025 (UTC)
- Fixed. Regs, The Equalizer (talk) 19:10, 24 July 2025 (UTC)
How avoid text that appears when hover mouse cursor over the map?
[edit]In Talk page at Talk:Death_of_James_Cook#Comments_from_Noleander I put a map. I've replicated the map here. When the mouse cursor is hovered over the map (desktop computer; Windows OS, Firefox browser) a popup window appears containing the text "The intuitive WP:UE/WP:COMMONNAME page title for this would probably be Death of James Cook. Just saying." which is the text (unreleated to the map) at the top of that Talk page.
That text popup window does not appear here, in this Talk page, when hovering over the map.
Does anyone know why that text is appearing? and if there is a way to prevent that popup from appearing? Noleander (talk) 18:29, 10 August 2025 (UTC)
- Likely have the Wikipedia:Tools/Navigation popups gadget switched on in your preferences, as that line is the very first topic on the talk page. Regs, The Equalizer (talk) 19:21, 10 August 2025 (UTC)
- You are correct ... that fixed it. Thanks. Noleander (talk) 19:36, 10 August 2025 (UTC)
- {{maplink}} could probably set the 'nopopups' class to avoid that navigation popups triggers. —TheDJ (talk • contribs) 08:10, 11 August 2025 (UTC)
- If there is a way to disable this popup issue, permanently, by a change to the maplink template, that would prevent this issue from arising in the future for other editors & readers ... so it seems like a good idea. Noleander (talk) 12:33, 11 August 2025 (UTC)
- {{maplink}} could probably set the 'nopopups' class to avoid that navigation popups triggers. —TheDJ (talk • contribs) 08:10, 11 August 2025 (UTC)
- You are correct ... that fixed it. Thanks. Noleander (talk) 19:36, 10 August 2025 (UTC)
Avoid polluting Category:Pages with script errors
[edit]Rather than using assert(lat_d, "Unable to get latitude/longitude from input '"..coords.."'."), which shows an unhelpful level of detail and places pages into the generic Category:Pages with script errors, is there a way to just return something like <strong class="error">Unable to get latitude/longitude from input XXX. Specify coordinates using {{tl|Coord}} template.</strong>[[Category:Pages with mapframe errors]] that would be more helpful and use a dedicated category? Only complication would be if there are other modules that try to parse the output of mapframe, but the common ones such as Module:Infobox mapframe just concatenate the output string to something else and should work fine. --Ahecht (TALK
PAGE) 14:25, 4 September 2025 (UTC)
coord compatibility
[edit]Why does Template:Maplink/testcases#Coord compatibility happen? It's not often, but it trips me up every now and then. If the coord template can tolerate lowercase cardinal directions, why can't maplink? --Joy (talk) 14:50, 23 October 2025 (UTC)
Map labels for some place names in Telugu language partly rendered with rectangular boxes
[edit]I filed a bug affecting small number of place labels for Telugu language on Phabricator (https://phabricator.wikimedia.org/T408884). Request other users with similar problem in their native languages to add comments. Arjunaraoc (talk) 01:46, 31 October 2025 (UTC)
Raw GeoJSON preferably stored locally rather than on Commons
[edit]On {{Maplink}}, regarding the raw parameter, why does it say for GeoJSON to be stored locally here rather than on Commons? The text is: "(specify raw GeoJSON, preferably transcluded from a subpage of Wikipedia:Map data)
". A technical issue, or fear of vandalism on Commons, or something else? Commander Keane (talk) 03:58, 13 November 2025 (UTC)
- The instruction to use Wikipedia's Map Data predates the updated licensing conditions on Commons, clearly it was overlooked and has not been updated since. It also states preferably. Regs, The Equalizer (talk) 17:26, 15 November 2025 (UTC)
Discussion at Template talk:MergedMap
[edit]
You are invited to join the discussion at Template talk:MergedMap. -- Joy (talk) 12:34, 27 November 2025 (UTC)
