Jump to content

Module talk:Mapframe

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lowercase sigmabot III (talk | contribs) at 20:30, 19 February 2025 (Archiving 1 discussion(s) to Module talk:Mapframe/Archive 2) (bot). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Copying template to another language wiki

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 possible for {{mapframe}} to include a link to the OSM relation, please? Currently I use {{OSM relation}} separately. Thanks. fgnievinski (talk) 06:55, 21 September 2024 (UTC)[reply]

Use the instructions on Kartographer in your earlier question, and change the type parameter for the shape on OSM to one of the four accepted, boundary is best. After some hours the Wiki maps server will copy the shape over and then you can call it using Mapframe and the Wikidata Q-number. Regs, The Equalizer (talk) 16:07, 21 September 2024 (UTC)[reply]
I meant to ask in the more specific case of using a GEOJSON. The reason is I'm mapping an OSM relation of type "site", which is not currently supported by Wikimedia importer. fgnievinski (talk) 05:33, 23 September 2024 (UTC)[reply]
Such as {{mapframe|frame=yes|from=Muro_da_Mauá.map}} ?
Map
Map
Regs, The Equalizer (talk) 08:15, 23 September 2024 (UTC)[reply]
Yes, but the external link to OSM could point to the relation https://www.openstreetmap.org/relation/17981605#map=14/-30.02738/-51.22937&layers=N instead of just the center coordinates https://www.openstreetmap.org/#map=14/-30.02738/-51.22937 fgnievinski (talk) 23:56, 23 September 2024 (UTC)[reply]
The Wikidata page is the central go-to point for all related features of an article. It already has a link to the relation on OSM, which usually gets cross-linked after adding the Q number to the relation on OSM. The Commons data page should also be added there. Regs, The Equalizer (talk) 09:47, 24 September 2024 (UTC)[reply]
I've now linked the geoshape in Commons to Q9046732. But when I include the parameter "id=Q9046732", mapframe complains "The JSON content is not valid GeoJSON+simplestyle." But let's consider a simpler case: a Q-item whose OSM relation is well supported at Wikipedia, such as "maplink|frame=yes|type=line|id=Q1094308". Even in that case, there's no backlink to the relation at OSM, only to the center coordinates. fgnievinski (talk) 21:37, 24 September 2024 (UTC)[reply]
From External links, you can't get to the OSM relation. I think the relations are meant to be accessible but not easily, and doing so only from the Wikidata page or by performing a find for local features in OSM itself is a good compromise. But, you could request it as a new feature in Phabricator. Using the Q number will only work if |type= is one of the four supported, as the parameter is still 'site', the wall shape is therefore not available on Wiki's maps. The Commons map file is not fetched with the Q number, it's only linked. Regs, The Equalizer (talk) 01:08, 25 September 2024 (UTC)[reply]

Feature label

The hovering label shown when clicking on the map is taken from the current page's title. It'd be nice to be able to set it manually, especially when invoking maplink multiple times in the same page. For example:

Map
Map

. Thanks! fgnievinski (talk) 21:46, 24 September 2024 (UTC)[reply]

Add |title=
{{maplink|frame=yes|type=line|title=Budapest|id=Q1094308}}
Map
Map
Regs, The Equalizer (talk) 01:21, 25 September 2024 (UTC)[reply]
Thank you! Not sure how I missed that information already in the documentation. fgnievinski (talk) 05:35, 25 September 2024 (UTC)[reply]

Can't disable map in infobox

I would like to disable the map in the infobox but 'mapframe=no' does not work. The article is Leys Institute. It might just be a Wikidata thing. Traumnovelle (talk) 19:09, 30 September 2024 (UTC)[reply]

Please do not ask the same question in multiple places, per WP:TALKFORK. I already explained in detail how to do this, but I understand that technical syntax is not everyone's cup of tea. I have disabled the map for you, even though I disagree with hiding the useful map in that article. – Jonesey95 (talk) 18:10, 1 October 2024 (UTC)[reply]

default caption (text=map)

Hello, I propose to change the default text of the caption to be empty. In my opinion "map" doesn't really say anything meaningful. It is also a hurdle for other languages using the module.--McBayne (talk) 23:51, 25 October 2024 (UTC)[reply]

replication lag monitoring

Can someone remind me, where can we check if there's a general lag between data entry into OSM and data showing up in Wikimedia mapframes? FAQ A4 It can take 1 or 2 days after tagging on OSM before the data is available here.

I edited https://www.openstreetmap.org/relation/18351028 last night and in recent times it's been very quick, but now I'm not seeing the update and I'm starting to wonder.

IOW are the osm2pgsql run logs saved somewhere where they can be downloaded to see? --Joy (talk) 11:07, 30 November 2024 (UTC)[reply]

Checks for lag are here - nothing unusual now but for some spikes earlier: mw:Help:Extension:Kartographer/OSM#Synchronization between OSM and Wikimedia wikis
Nothing reported on Phabricator either. The links above do state anything up to 2 weeks is acceptable. I think it is nearly done as the relation is available, so wait another day I'd say. The Equalizer (talk) 09:11, 1 December 2024 (UTC)[reply]
Thanks for the links, there is no apparent lag, but it's still not rendering on Guanipa River, maybe it's something else.
This code behavior where one says |mapframe=yes and yet it still shows no error messages is rather frustrating, can we fix that somehow? --Joy (talk) 16:46, 2 December 2024 (UTC)[reply]
Fixed. Coordinates were missing off WD. Regs, The Equalizer (talk) 21:34, 2 December 2024 (UTC)[reply]
Aha, [1], thanks.
That apparent requirement doesn't quite make sense, either, since the interesting thing mapframe plots there is the line relation, not that point. --Joy (talk) 07:49, 3 December 2024 (UTC)[reply]
And AFTER the lag, comes the caching. For some things this is 24 hours (shapes and OSM lookups), and other things (like raw tiles), this can be up to 30 days. —TheDJ (talkcontribs) 12:17, 3 December 2024 (UTC)[reply]