Jump to content

Module talk:Mapframe

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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)[reply]

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)[reply]

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)[reply]

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)[reply]

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)[reply]

 You are invited to join the discussion at Template talk:MergedMap. -- Joy (talk) 12:34, 27 November 2025 (UTC)[reply]

Wikidata precision property

[edit]

Apparently there's a precision indicator on Wikidata forms that impacts coordinates, e.g. in this diff. Would it be possible to look up that value (once we're already rendering Wikidata coordinates, of course) and have it contribute to our default thumbnail zoom? @Hike395? --Joy (talk) 11:49, 10 December 2025 (UTC)[reply]

Multiple maps on a page?

[edit]

In Special:Permalink/1334423075, I'm creating some maps which will eventually be used in Tatannuaq. In the Coppermine expedition map, the marker numbers (to my great astonishment) don't follow the template item numbers but appear to pick up in sequence where the previous map left off. Is there any way to get each map to start numbering at 1? RoySmith (talk) 13:08, 23 January 2026 (UTC)[reply]

Yes, set the marker type for the points in each map with the same number group, so -number-1 etc. Regs, The Equalizer (talk) 19:02, 23 January 2026 (UTC)[reply]
OK, that worked, thanks. But, I do have to say, not at all obvious from the docs :-) RoySmith (talk) 20:41, 23 January 2026 (UTC)[reply]

Better way to arrange multiple items in a map?

[edit]
Map
Locations where Mallon worked or resided. 1) Mamaroneck. 2) East Hampton. 3) Sands Point. 4) Oyster Bay. 5) Tuxedo Park. 6) New York. 7) North Brother Island. 8) Newfoundland. 9 Marblehead. 10) Dark Harbor.

In Mary Mallon, I've got a map with 10 locations. Is there some way to do this without having to explicitly number the locations, i.e. type1, type2, etc? That's a maintenance nightmare. The intent is that the locations are numbered in the same order as they are mentioned in the article text. If I want to add a new location between what's now 2 and 3, I have to manually renumber all the rest of the items. That's a pain in the wikitext editor. It would be essentially impossible in VE. What I've been tending to do is copy-paste the text onto my desktop, go at it with emacs, and copy-paste the results back. Not wonderful, but better than the alternatives.

Computers are good at counting things. Why can't there be a way to just list the locations in order, without any explicit numbering, and let the software handle figuring out which is 3 and which is 7? Then if I want to modify the list, I just plop the new entry down and it all works.

Is there at least some way to not have to repeat the type, marker, and marker-size parameters, since they're the same for every item? RoySmith (talk) 13:32, 30 January 2026 (UTC)[reply]

Most of the Wikipedia:Maps for Wikipedia tools expect the same format to define each marker / feature with parameters unless using default values where some can be left off. Mapframe does offer a Wikidata SPARQL query option whereby the points can be pulled into the map automatically without explicitly defining them but it is quite advanced powerful stuff. Regs, The Equalizer (talk) 14:29, 30 January 2026 (UTC)[reply]