Module talk:Mapframe: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) to Module talk:Mapframe/Archive 2) (bot
m Archiving 2 discussion(s) to Module talk:Mapframe/Archive 2) (bot
Line 16:
 
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.
 
== Link to OSM relation ==
 
Is it possible for {{tlx|mapframe}} to include a link to the OSM relation, please? Currently I use {{tlx|OSM relation}} separately. Thanks. [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 06:55, 21 September 2024 (UTC)
 
: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, [[User:The Equalizer|The Equalizer]] ([[User talk:The Equalizer|talk]]) 16:07, 21 September 2024 (UTC)
::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. [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 05:33, 23 September 2024 (UTC)
:::Such as {{tlx|mapframe|<nowiki>frame=yes|from=Muro_da_Mauá.map</nowiki>}} ?
:::{{mapframe|frame=yes|frame-align=left|from=Muro_da_Mauá.map}}
:::{{clear}}
:::Regs, [[User:The Equalizer|The Equalizer]] ([[User talk:The Equalizer|talk]]) 08:15, 23 September 2024 (UTC)
::::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 [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 23:56, 23 September 2024 (UTC)
:::::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, [[User:The Equalizer|The Equalizer]] ([[User talk:The Equalizer|talk]]) 09:47, 24 September 2024 (UTC)
::::::I've now linked the geoshape in Commons to [[:wikidata:Q9046732|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. [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 21:37, 24 September 2024 (UTC)
:::::::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 <code>|type=</code> 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, [[User:The Equalizer|The Equalizer]] ([[User talk:The Equalizer|talk]]) 01:08, 25 September 2024 (UTC)
 
== 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: {{maplink|frame=yes|type=line|id=Q1094308}}. Thanks! [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 21:46, 24 September 2024 (UTC)
 
:Add <code>|title=</code>
:{{tlx|maplink|<nowiki>frame=yes|type=line|title=Budapest|id=Q1094308</nowiki>}}
:{{maplink|frame=yes|type=line|frame-align=left|title=Budapest|id=Q1094308}}
:{{clear}}
:Regs, [[User:The Equalizer|The Equalizer]] ([[User talk:The Equalizer|talk]]) 01:21, 25 September 2024 (UTC)
::Thank you! Not sure how I missed that information already in the documentation. [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 05:35, 25 September 2024 (UTC)
 
== Can't disable map in infobox ==