GeoGroup doesn't seem to be working

edit

Clicking on the GeoGroup box in the rendered article isn't launching Open Street Map. However, Open Street Map itself seems to be working as normal. Not sure where to report this problem. Kerry (talk) 02:28, 15 February 2024 (UTC)Reply

OSM4Wiki (the tool behind) isn't maintained very well anymore, so maybe replace (or complement) by WikiMap (which doesn't have "section" support), e.g. https://wikimap.toolforge.org/?lang=en&page=Paris
WikiMap has working "level" support (showing subcategories), broken in osm4wiki for years: {{#if: {{{level|}}}|&subcats=true&subcatdepth={{{level|}}}}} --DB111 (talk) 13:03, 22 February 2024 (UTC)Reply
Having GeoGroup not working is quite a big loss. Where should that be reported in the hope that someone can work out a solution? Thanks! Underwaterbuffalo (talk) 14:56, 22 February 2024 (UTC)Reply
Unfortunately (resp. with good reason) not everybody could change the template to switch the tool. --DB111 (talk) 16:07, 22 February 2024 (UTC)Reply
Replace [https://tools.wmflabs.org/osm4wiki/cgi-bin/wiki/wiki-osm.pl?project=en&article={{urlencode:{{{articlee|{{{article|{{FULLPAGENAMEE}}}}}}}}}}{{#if:{{{section|}}}|&section={{urlencode:{{{section|}}}}}}}{{#if:{{{level|}}}|&l={{urlencode:{{{level|}}}}}}} OpenStreetMap] with
[https://wikimap.toolforge.org/?lang=en&page={{urlencode:{{{articlee|{{{article|{{FULLPAGENAMEE}}}}}}}}}}{{#if:{{{level|}}}|&subcats=true&subcatdepth={{urlencode:{{{level|}}}}}}} OpenStreetMap] --DB111 (talk) 16:19, 22 February 2024 (UTC)Reply
That does not work for me. See https://wikimap.toolforge.org/?lang=en&page=Saint+Johns+Range. But it seems as though GeoGroup works some of the time, just not all the time. Aymatth2 (talk) 17:20, 22 February 2024 (UTC)Reply
 
Geogroup Screenshot from w:en:Saint Johns Range
Now GeoGroup is working. Maybe it is just running on an antique server that cannot handle the load. Aymatth2 (talk) 19:57, 22 February 2024 (UTC)Reply
Not working for me. Try it on Indooroopilly, Queensland or [1] Kerry (talk) 23:39, 22 February 2024 (UTC)Reply
Now it's working again! Hurrah! Thanks to anyone who helped make it happen! Kerry (talk) 07:24, 24 February 2024 (UTC)Reply

Stopped working again. After a long delay, I see "Wikimedia Toolforge Error: Our servers are currently experiencing a technical problem. This is probably temporary and should be fixed soon. Please try again later." Aymatth2 (talk) 15:29, 12 March 2024 (UTC)Reply

The template's feature "Map this section's coordinates using OpenStreetMap" is not working correctly; coordinates are not mapped at all (see Marcos mansions#List of current & former properties owned by the Marcos clan). Please fix it. Thanks. Sanglahi86 (talk) 22:14, 5 July 2024 (UTC)Reply
Working for me, using both Chrome and Firefox, on Lubuntu Linux. Works with whole article or single section selection. Tested on List of Isle of Man railway lines and locations. -- Verbarson  talkedits 21:40, 6 July 2024 (UTC)Reply
The Isle of Man railway lines are mapped, but the Marcos mansions coordinates are not. I'm using Chromium on Linux Mint. I cannot identify what is wrong with the coordinates in that article. Sanglahi86 (talk) 10:06, 7 July 2024 (UTC)Reply
I think I've solved it by replacing the ampersand (&) in the section title. Maybe GeoGroup's underlying code is picky about special characters? -- Verbarson  talkedits 14:31, 7 July 2024 (UTC)Reply
GeoGroup generates a URL that includes the section name, with & replaced by %26 (and space replaced by +) apparently following the percent-encoding process (specifically the application/x-www-form-urlencoded variant):
https://osm4wiki.toolforge.org/cgi-bin/wiki/wiki-osm.pl?project=en&article=Marcos_mansions&section=List+of+current+%26+former+properties+owned+by+the+Marcos+clan
(note: this URL will not work since the section has been renamed)
I guess that the code which interprets this URL fails to decode the encoded characters properly. -- Verbarson  talkedits 17:25, 7 July 2024 (UTC)Reply

All GeoGroups are showing the same place in Germany?

edit

Initially I thought I must have made an error entering coordinates in the article I was working on, but it seems every GeoGroup I checked both in Australian articles and beyond is taking the reader to the same map of somewhere in Germany. Not sure if this is our problem or Open Street Maps. Kerry (talk) 02:24, 27 July 2024 (UTC)Reply

I am currently working on OSM4Wiki. Some changes in Wikimedia forced me to activate the new version before it was bug-free. I even asked on several places to test the new version, but there was little feedback. Nobody told me "your tool does not work with GeoGroups". So please be patient. --Plenz (talk) 19:00, 31 July 2024 (UTC)Reply
Thanks for fixing it! Kerry (talk) 07:55, 2 August 2024 (UTC)Reply

A new weirdness today: First coord is duplicated

edit

GeoGroup is creating two "pins" on the map for the first coordinate it encounters in a lot of articles, e.g., Victoria Harbour (British Columbia). It seems to occur where the infobox has a coord set to "display=inline,title". Kerry (talk) 00:21, 12 August 2024 (UTC)Reply

Fixed. DB111 (talk) 09:58, 14 August 2024 (UTC)Reply

A couple more issues

edit

First, the GeoGroup is titled as "article" rather than the name of the article.

More importantly though, the grouping of the points into clustered is not helpful on most maps I create. For example, South Coast railway line, Queensland previously showed the reader all 20 stations along the route in sequence. Now they are unhelpfully clustered into 4 groups. I can imagine there are situations when clustering might be useful, but it's not for most of the maps I create, where I am trying to show the relative position of the points of interest to one another as an aid to understanding the geography of the area. Could the use of clusturing be made a parameter so it could be turned on when it suits the map for that article, but the default be the display of points as before. Thanks. Kerry (talk) 02:27, 18 August 2024 (UTC)Reply

@Kerry: The clustering is controlled by the two pins/ellipse icon at the top of the location list on the map, and can be permanently set (via cookies) using the star icon to get a Settings menu. -- Verbarson  talkedits 09:36, 18 August 2024 (UTC)Reply
Permanently on what basis? Per user? Or can I control it from the Wikipedia article? Kerry (talk) 21:36, 18 August 2024 (UTC)Reply
Certainly I have never enabled clustering yet I was seeing clusters. Kerry (talk) 21:37, 18 August 2024 (UTC)Reply
It's controlled per user within OSM. According to the Settings drop-down, the settings are 'permanently stored in cookies', so they last as long as the cookies do. I think it is a pity that the default is to use clustering, which makes it different from the previous behaviour, but each user can disable it (if they try out the icons). -- Verbarson  talkedits 23:36, 18 August 2024 (UTC)Reply

Also the section headings are lost and therefore the ability to enable/disable display of that section

edit

For example with List of schools in Darling Downs, it was possible to know which schools were open/closed, primary/secondary and filter accordingly. Now those distinctions and that capability has disappeared.

Also, the map starts loading in Germany and with a spinning wheel. Can this be suppressed please.

Given that the GeoGroup template is used on very many articles, perhaps there is needs to be some discussion before changes are made. While they may suit some articles, they may not suit others and a conversation in advance to obtain consensus on what should be default and what optional etc. Thanks Kerry (talk) 02:37, 18 August 2024 (UTC)Reply

Documentation is here on the German wiki. Google translate seems to give a clear translation, but I don't read German so I cannot be sure. -- Verbarson  talkedits 09:43, 18 August 2024 (UTC)Reply
Please add a topic with your pain points here, you can write in English for sure. DB111 (talk) 09:40, 19 August 2024 (UTC)Reply
I have created a topic there listing all the points raised in this and the previous topic. -- Verbarson  talkedits 11:34, 19 August 2024 (UTC)Reply

Category recursion

edit

I just discovered this template on a List page and am hoping to incorporate it into other List articles for Wikipedia:WikiProject Hospitals. I read about the "level" parameter and tried to add it but it doesn't seem to be working for me. Specifically, I've added it to List of hospitals in Massachusetts, using article=Category:Hospitals in Massachusetts and setting level=0, which if I'm reading correctly is supposed to allow it to also pull from all levels of subcategories. Unfortunately, the map then only shows the lone hospital categorized at the top level, Nantucket Cottage Hospital, and is not pulling from sub-categories. I've also tried setting it to 1 and 3, with the exact same results. Can someone explain what I'm doing wrong? Thank you in advance! Mangocove (talk) 18:06, 30 August 2024 (UTC)Reply

The underlying interface to OSM has recently been extensively re-written, leading to the previous two topics. The author 'resides' on the German wikipedia, and has responded well to information about problems experienced here. All discussion with me was in English. I suggest you contact them on this linked talk page, and describe your concerns and expectations.
Ultimately, {{GeoGroup}} merely creates a URL, the important code is at osm4wiki.toolforge.org, and if it can no longer do what our parameters expect, we may have to remove those parameters. -- Verbarson  talkedits 18:54, 30 August 2024 (UTC)Reply
The subcategory feature has been disabled for years in this tool (for unclear performance reasons), but please ask Plenz to enable it again. In the meantime you could additionally include WikiMap to the template (example: https://wikimap.toolforge.org/?lang=en&page=Category:Hospitals_in_Massachusetts&subcats=true), but this tool lacks Section support. DB111 (talk) 10:02, 31 August 2024 (UTC)Reply

Support "position" parameter from {{side box}}

edit

I have been using this template on mountain range pages but often the side box ends up below the mountain infobox on the right side and not directly in the relevant section. Could this template add support for the "/position=left" parameter from {{Side box}} so I could have the box displayed directly below the table of mountains? RedWolf (talk) 20:05, 19 October 2024 (UTC)Reply