Module talk:Location map/Archive 11
Text flow on phoneI find that when no caption is given the text that follows the map flows round it rather than starting below it, Which can give ugly results when the map is large. Adding a caption solves the problem. E.g. No problem when a caption is given. But when there is none, text flows awkwardly: Scroll to the bottom of this window, click "Mobile view" and size the window to about 400px to see the effect – or just view this page on a phone. Is this something that can / should be fixed? Aymatth2 (talk) 12:04, 4 November 2021 (UTC) TutorialHello everyone! I am interested in knowing the procedure of creating a location map from scratch. (how to I establish the coordinates for the sides as well as the center) Can anyone help me? Cheers, DariusConopidovici (talk) 21:35, 16 November 2021 (UTC)
@DariusConopidovici: After looking at these maps Commons:ser:Sting/Gallery: Location and locator maps, I think it is best to remove the inset map of the region from the upper right. You can see for both Algeria and Chad that no inset is used for each of the admin areas. - DutchTreat (talk) 12:08, 8 December 2021 (UTC) Location marks should appear on the full-sized map when you open itLocation marks should appear on the full-sized map when you open it. This seems like it should be technically simple to implement and it's strange that it's not already in place. I can't be the only person who's bothered by this, right? 2601:1C1:8800:1AF0:3D63:F167:97B9:EE48 (talk) 03:08, 25 February 2022 (UTC) Map request for TokelauNot sure if this is the place to request this, but could we get a map for Tokelau? The “best” i found for List of villages in Tokelau is Oceania. Maybe even a Polynesia map would work better. The islands are just north of American Samoa, for context. --awkwafaba (📥) 03:20, 22 February 2022 (UTC)
He speaks English LOL.♦ Dr. Blofeld 07:17, 25 February 2022 (UTC) Rescaling secondaryModules marks in Module:Location map/multi function "load"At present the handling for The following is a strawman proposal and is not a real edit request. At least not until someone else concurs that we need to do something about it. We should add a new if dataModule.secondaryModules then
for _,modname in ipairs(dataModule.secondaryModules) do
local mod = mw.loadData(modname)
-- ignoring multi-map for this prototype. also ignoring height stretch (because there's no "height" for {{location map~}}) and non equirectangular (because we can't do complex stretching and calculation is messy)
local m_map = locmap.getMapParams(mw.getMapParams(mod.containerArgs[1]), frame)
local m_width = mod.containerArgs.width
-- calculate width of the mod's map under current frame's params (width left right)
-- calculate scale ratio = width ratio
for _,markArgs in ipairs(mod.marks) do
if markArgs['preserve_scale'] ~= nil then
markArgs['width'] = markArgs['width'] * scale
end
marks[#marks + 1] = tostring(locmap.mark(frame, markArgs, map))
end
end
end
Artoria2e5 🌉 14:03, 2 March 2022 (UTC) USA Midwest and Northeast errorsI reported here that Module:Location map/data/USA Northeast was moved to Module:Location map/data/USA Midwest and Northeast and that has broken several articles. For example, Premier Hockey Federation is showing 'Lua error in Module:Location_map/multi at line 27: Unable to find the specified location map definition: "Module:Location map/data/USA Northeast" does not exist.' A discussion at Commons was mentioned in the edit summary. Any views on what should happen to fix the article errors? Possibilitis are to revert the move, or to fix the articles, or possibly to cop out by making an effective redirect at the original title. Johnuniq (talk) 06:33, 9 March 2022 (UTC)
Two mapsI was editing the Bhopal disaster and I would like to have the following: one map which shows the location of Bhopal within India and one that shows the location of the plant in Bhopal itself. What would be the best approach to it? PhotographyEdits (talk) 15:04, 9 April 2022 (UTC) Documentation for Template:Location map data documentationShould the template {{Location map data documentation}} have some instructions on use? – Reidgreg (talk) 18:58, 10 April 2022 (UTC) Template-protected edit request on 22 April 2022: submaps
Submaps
Problem with error
Also getting maybe a different problem at infobox of Trafalgar Marine Protected Area, where the position is displaying in the wrong place. the red dot is displayed at somewhere near 34S, 20E, while it should be at the position in the only {{coords}} template on the page, about 30S, 30E. · · · Peter Southwood (talk): 13:43, 10 July 2022 (UTC)
'class=notpageimage|' displayed in article when location map+ is usedSee Lake District for an example. I have no idea why it's doing this. Can someone look into it? KaraLG84 (talk) 12:16, 11 August 2022 (UTC) Help with a faulty mapHello, I've been working through the page listing all the articles with linting errors on and I've encountered this page which has been sat at the top of the list for a while. It has a problem with the map that the linting tool says is down to this markup: {{#invoke:Location map|top|Russia Bashkortostan|width=1000|float=center|caption=y}} I've tried to fix it and learn how this template works but I'm stuck. Can anyone help? LicenceToCrenellate (talk) 11:07, 25 August 2022 (UTC)
Thank you for your help. I was unsure about deleting it, probably worth pursing. I didn't know about the lint help page, thanks again! LicenceToCrenellate (talk) 15:42, 25 August 2022 (UTC) SharjahHi, recently I uploaded this map of the Emirate of Sharjah and I'm wondering if anyone could get it into the location map code so I can use it more efficiently in articles about suburbs and communities in the Emirate. Badass Flare (talk) 19:14, 2 November 2022 (UTC) Instructions for checking links unclearThe documentation page suggests that Wikipedia editors should check if nothing links to a page to check if it might be broken. But clicking on a map on the list provides no such information. Is this a bug in the mobile Wikipedia formatting, or is that one sentence hint just too obtuse to be useful to first time users of the"location map" template. 77.213.220.123 (talk) 04:47, 29 January 2023 (UTC) Help with module Moved from Special:Permalink/1149600385 Can someone please fix this module? The module is Module:Location map/data/Australia Greater Newcastle. I've been testing it on the page Swansea, New South Wales (by adding A new idea to insert outer title in this templateSeen from Washington (state) I just got an idea to place an outer title for this template, which requires an optional parameter Who can reproduce? -- Great Brightstar (talk) 07:33, 25 May 2023 (UTC) Not centred on mobileOn mobile the image follows the float parameter. On narrow screens such as phones, this results in the article's text flowing to the side in a very narrow and hard to read column. In contrast, ordinary images generally are centred, and don't float, unless the screen is wide enough to justify floating. Hairy Dude (talk) 22:50, 3 September 2023 (UTC) How to show multiple mapsDoes anybody know how to show multiple maps that can be selected as in the Jakarta article. Looking at the WML, there is no mention of the filenames used - just some strange hashtags. I tried searching on help, but as is well known, the pathetic inadequacies of that function mean it's almost impossible to find even simple information. Any help, or a pointer to the concealed help page, would be much appreciated. Thanks. Davidelit (Talk) 04:17, 22 July 2023 (UTC)
Error in Myanmar mapIn Module:Location map/data/Myanmar the two maps there have different coordinates. The File:Myanmar relief location map.jpg mentioned in its description is 92-102 E. So if this file is shown, the coordinate marked is shifted left/right from the place it should be. I think the File:Myanmar adm location map.svg should be changed to File:Myanmar location map.svg and the coordinate should be adjusted accordingly. Not sure what would break if the map range is shrunk. --Lerdsuwa (talk) 02:18, 21 March 2022 (UTC)
Pyongyang MapHey, I see there's a Module:Location map/data/North Korea, but it'd be nice to have one for Pyongyang more specifically. Similar to Module:Location map/data/South Korea Seoul. Could anyone create this? Would be much appreciated; I'd make really good mileage out of it by making a bunch of infoboxes for pages with it. toobigtokale (talk) 09:46, 26 September 2023 (UTC) Bug when displaying several places? Cannot clickHello, is this a bug? In map 1, clicking on "Recanati" works fine, both on the name and on the red marker. In map 2, it's impossible to click on "Recanati". I noticed that if I delete the "Siena" place, it kinda starts working but still a little buggy. There seems to be some kind of interaction that I fail to understand. In this map it happens with other places too, such as Milan. I noticed it happens frequently on other different maps. Is this a general problem of Location map? Or is it specific to some maps? Can anybody help or provide some insight? Thanks in advance
Gor1995 (talk) 14:23, 2 October 2023 (UTC) I used a little trick on your second map to show you what label_width of 50 means: Livorno and Siena boxes are completely covering Recanati. For most of those labels 6 would suffice, as shown of your first map. Ponor (talk) 00:31, 3 October 2023 (UTC)
Two suggestions: default map image linking and VDE linksFirst I'd like to suggest including some version of {{navbar}} on each location map template (pointing to that map instead of Location map+ itself). I was experimenting with adding it on {{Oceans and seas in Southeast Asia}} and found it to be helpful and unintrusive with the right formatting parameters, but didn't save the edit because I thought it would be better to have this be standardised between all of the location maps using this template. This could have parameters to turn it off or to override whatever default formatting of navbar we picked so that the user could still format the final result as if inserting that template on the caption manually. Secondly: We can turn off linking to the default background image with the maplink= parameter on Location map+. However, the vast majority of uses of this template on the wiki have links, and the background image link is very easy to click on by accident. Many, many of these templates are almost unusable because of their tiny links next to a clickable background. Even the example map on the template documentation suffers from a clickable background instead of maplink= despite being full of links. Proposing that the current behavior of maplink= is made the default for that template, and for some other parameter value to produce the current default. YuriNikolai (talk) 19:36, 7 October 2023 (UTC) MarkersWhats configuration to put more than 1 marker, for example 10 markers in same map. Joaosilva2000 (talk) 08:11, 12 October 2023 (UTC)
image2, image3…
Description of suggested change: see below Diff: Special:Diff/1177292789 Ponor (talk) 12:51, 23 October 2023 (UTC) Module:Location map/data/Zimbabwe has three maps in its definition file, but only image and image1 can be used with the help of The same thing tested at test.wiki from {{Location map}} template is here testwiki:User:Ponor/sandbox/Location map Ponor (talk) 02:43, 27 September 2023 (UTC)
Leaving a note here that Location map many, Location map+ and their modules need no changes in order for this to work (images from Module:Location map/data/Africa): Ponor (talk) 16:21, 30 September 2023 (UTC) Template contains script errorThe resecently add line local digits = mw.ustring.match(args.relief,'^[1-9][0-9]?$') or '1' -- image1 to image99 is throwing a script error because args.relief is a boolean not a string. Phatom87 (talk • contribs) 00:16, 31 October 2023 (UTC)
Three-state caption parameterThe module has different outputs depending on whether Possible problem with Eurasia mapPlease see this version of my sandbox for an illustration of a problem with locating Tehran on the map of Eurasia. The dot is located somewhere west of Egypt but should be considerably northeast of there, at the south end of the Caspian Sea. This problem is happening in the infobox at Tehran as well. The coordinates appear to be correct. The other three maps in that infobox display the dot correctly. – Jonesey95 (talk) 15:35, 6 December 2023 (UTC)
|
Portal di Ensiklopedia Dunia