Content deleted Content added
add {{talk header}}, and heading for first discussion |
merged in sections from Module talk:Mapframe, which had related discussions |
||
Line 1:
{{talk header}}
{{central|Template talk:Maplink}}
==Data page names==
I am not sure its a good idea to promote identical names in Data and here. Lets try to keep the data a bit organized by storing it in a "fake subpage" - e.g. '''Data:naturalearth.com/something.map''' ? So basically the template should probably not have a default at all? --[[User:Yurik|Yurik]] ([[User talk:Yurik|talk]]) 05:00, 24 December 2016 (UTC)
==Singular points==
Can the <code>maplink</code> template be adjusted to show singular points (using Wikidata IDs) and latitude/longitude coordinates? There are quite a few article [[Special:WhatLinksHere/Template:Maplink|pages]] that are using template:maplink but they're showing maps that don't make any sense, because they are singular points. Easy examples are: [[National_Museum_of_Australia|National Museum of Australia]] and [[National_Institute_of_Dramatic_Art|National Institute of Dramatic Art]]--they both show a (map) link but it goes to a map in the ocean. :( [[User:DTankersley (WMF)|DTankersley (WMF)]] ([[User talk:DTankersley (WMF)|talk]]) 19:38, 13 October 2017 (UTC)
::::I was the one that added those maps. Checking now, my experience is that maps that use <code>shape</code> work correctly but those that use <code>shape-inverse</code> display the target area correctly but with the map zoomed all the way out. I can confirm that this regression also affects the native <nowiki><mapframe> and <maplink></nowiki> functions. I've filed https://phabricator.wikimedia.org/T178370. [[User:Gareth|Gareth]] ([[User talk:Gareth|talk]]) 12:06, 17 October 2017 (UTC)
:{{ping|User talk:DTankersley (WMF)}} I switched [[National Museum of Australia]] to use {{para|type|shape}} instead of <code>shape-inverse</code> and then it worked for me, and [[National Institute of Dramatic Art]] already works for me. They aren't points, by the way, but polygon shapes on OpenStreetMap that have been tagged with the relevant Wikidata IDs – specifically https://www.openstreetmap.org/relation/5613553 and https://www.openstreetmap.org/way/45558386 - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 23:37, 13 October 2017 (UTC)
:: Thanks, I just checked out [[Sydney_Park|Sydney Park]] and it was the same...using <code>shape-inverse</code>. [[ping|Evad37]], is there a way to add in a Wikidata id that isn't a shape but a point? Or, just a lat/lng? Thanks, [[User:DTankersley (WMF)|DTankersley (WMF)]] ([[User talk:DTankersley (WMF)|talk]]) 01:10, 14 October 2017 (UTC)
:::{{ping|DTankersley (WMF)}} I tried to implement this in the sandbox (see the bottom of [[Template:Maplink/testcases]]) – but I can't get the marker images to show, making it pretty useless. For the moment it looks like we'll have to stick with {{tl|Coord}} and [[WP:WikiMiniAtlas]]. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 03:14, 14 October 2017 (UTC)
:::: Thanks for confirming what I saw as well, [[ping|Evad37]], because that's the same error I was getting when I tried using a point or lat/lng in the <code>maplink</code> template. :( Unfortunately, this makes it hard to get more usage of maps on articles if the average editor can't easily add a link. [[User:DTankersley (WMF)|DTankersley (WMF)]] ([[User talk:DTankersley (WMF)|talk]]) 13:17, 15 October 2017 (UTC)
::::: I've added in a phabricator ticket to see if adding in the ability to use a Wikidata Qid for a single point and using a lat/lng can be added to the Template:Maplink and Template:Mapbox templates: https://phabricator.wikimedia.org/T178321. Maybe one of our fantastic community volunteers can help out! :) Thanks, [[User:DTankersley (WMF)|DTankersley (WMF)]] ([[User talk:DTankersley (WMF)|talk]]) 18:28, 16 October 2017 (UTC)
== Using mapframes / maplink nicely in taxoboxes ==
I tried using the above at [[Bugun liocichla]] - which is a species known from (how nice) just three point locations. Now it would be nice to have simple round spot markers without shadows and it would be nice not to have to set the width and height parameters but to use the taxobox/infobox settings. Would all this be easy to have? [[User:Shyamal|Shyamal]] ([[User talk:Shyamal|talk]]) 09:12, 2 May 2018 (UTC)
:{{ping|Shyamal}} If you use this template instead of using the tag directly, then a default width and height (currently 300/200) is used unless otherwise specified. At the moment this template can only handle a single feature, but I'm rewriting it as a Lua module that should be able to display multiple features. As [[mw:Maps/Icons]] are the only icons currently available, the closest you can get to "simple round spot" would be the small sized marker.
::{{ping|Shyamal}} As an alternative, {{tl|OSM Location map}} (implemented below) does allow round markers (but hasn't yet got the internationalised place names implemented). To allow the three dots to be resolved, in the example below I have increased the zoom and added a smaller locator map. Like Maplink it can't auto-resize to fit the infobox, but centring it will help the appearance. [[User:RobinLeicester|RobinLeicester]] ([[User talk:RobinLeicester|talk]]) 23:54, 23 May 2018 (UTC)
{{OSM Location map
|float = centre
|width=300| height=300
| coord = {{coord|27.0|92.0}}
| zoom =7 <!--(1=whole world, 18=a street)-->
| caption = Distribution of Bugun liocichla
| minimap = file| mini-file = India ___location map.svg
| mini-width = 95| mini-height = 102
| minipog-x = 75| minipog-y = 32
| minimap-boxwidth=12
| scalemark = 110
| mark-coord1={{coord|27.106200136169655|92.3953628540039}}|shape-color1=#52b34d|shape1=circle| mark-size1=12
| mark-coord2={{coord|27.07548177817971|92.46265411376953}}
| mark-coord3={{coord|27.15707319416965|92.46093749999999}}
}}
::{{ping|RobinLeicester}} thank you, that definitely looks better but I had to put in a div to avoid breaking the box. [[User:Shyamal|Shyamal]] ([[User talk:Shyamal|talk]]) 10:10, 25 May 2018 (UTC)
==RFC notice==
An RFC is going on at [[Wikipedia:Wikidata/2018 Infobox RfC]], for consensus on Wikidata usage in Wikipedia. [[User:Capankajsmilyo|Capankajsmilyo]]<sup>([[User talk:Capankajsmilyo|Talk]] | [[Wikipedia:WikiProject Infoboxes/assistance|Infobox assistance]])</sup> 16:39, 2 May 2018 (UTC)
==bnwiki==
Line 8 ⟶ 44:
:::Hi {{ping|Evad37}} just let you know that <code>coord</code> parameter does not support aliases. <code> coord = { "coord", "anything" },</code> (line 20) gives error. --[[User:Aftabuzzaman|আফতাব]] ([[User talk:Aftabuzzaman|talk]]) 18:50, 29 May 2018 (UTC)
::::@[[User:Aftabuzzaman|আফতাব]]: {{Fixed}} here with [https://en.wikipedia.org/w/index.php?title=Module%3AMapframe&type=revision&diff=843579359&oldid=843165859 this edit] - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 02:25, 30 May 2018 (UTC)
== Error ==
{{ping|Evad37}} {{tlx|coord|32|S|116|E}} works but {{tlx|Coord|57|18|22|N|4|27|32|E}} doesn't.
<code><nowiki>{{Maplink|frame=yes|type=point|coord={{coord|32|S|116|E}}|title=Point|description=Description of point}}</nowiki></code> → {{Maplink|frame=yes|type=point|coord={{coord|32|S|116|E}}|title=Point|description=Description of point}}
but
<code><nowiki>{{Maplink|frame=yes|type=point|coord={{Coord|57|18|22|N|4|27|32|E}}|title=Point|description=Description of point}}</nowiki></code> → {{Maplink|frame=yes|type=point|coord={{Coord|57|18|22|N|4|27|32|E}}|title=Point|description=Description of point}}
--[[User:Aftabuzzaman|আফতাব]] ([[User talk:Aftabuzzaman|talk]]) 22:46, 26 May 2018 (UTC)
:{{ping|Aftabuzzaman}} {{Fixed}}. Sorry for the long delay. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 02:28, 15 August 2018 (UTC)
== Sandbox error?? ==
Line 15 ⟶ 67:
:{{ping|JohnBlackburne}} {{Fixed}}, and requested protection for Infobox mapframe at [[WP:RFPP]] - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 03:31, 31 July 2018 (UTC)
::Thanks. I noticed your changes already to the Simpsons house article. An interesting test case as there can’t be many other articles for wholly fictional buildings.--<small>[[User:JohnBlackburne|JohnBlackburne]]</small><sup>[[User_talk:JohnBlackburne|words]]</sup><sub style="margin-left:-2.0ex;">[[Special:Contributions/JohnBlackburne|deeds]]</sub> 03:35, 31 July 2018 (UTC)
== Multiple separate OSM relations with the same wikidata tag ==
Is there a way to refer to separate OSM relations using separate rendering styles when they both have the same Wikidata tag? For example, to have completed sections of a road render in red, and incomplete sections to render in blue, when the two segments have different route relations, but with only one Wikidata tag for the road. Is this possible with the current system? [[User:Roadsguy|Roadsguy]] ([[User talk:Roadsguy|talk]]) 01:20, 15 August 2018 (UTC)
:No, the maps can only use a Wikidata id to refer to an OSM relation. Different items would be required to refer to different OSM relations, but such items (referring to only part of a thing) would quite possibly fail [[d:Wikidata:Notability]]. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 01:43, 15 August 2018 (UTC)
:Note that you can use GeoJSON data instead of OSM, as long as the data's licencing is CC-BY-SA compatible – see [[Wikipedia:Map data]] and related discussion at [[Template talk:Infobox road#Mapframe maps]]. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 02:35, 15 August 2018 (UTC)
::Hmm, that's too bad. Is the Maplink feature being maintained by anyone in particular? How might I go about suggesting that? Referring to OSM relations individually would allow for a lot of versatility in certain applications. [[User:Roadsguy|Roadsguy]] ([[User talk:Roadsguy|talk]]) 03:02, 15 August 2018 (UTC)
:::[[mw:Wikimedia Maps]] and [[mw:Help talk:Extension:Kartographer]] would be the main on-wiki pages, you can also file bugs/feature requests on [[phab:|Phabricator]] (see [[phab:tag/maps|existing maps tasks]]) - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 03:26, 15 August 2018 (UTC)
::::{{replyto|Roadsguy}} OSM relations are a bit brittle though. They aren't really made to be permanently identifiers, which technology like this wants. There is also no feature work being planned for wikimedia maps for the foreseeable future. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 08:15, 15 August 2018 (UTC)
: Something might be possible with <code><mapframe></code> and a wikidata query using Sparql (see [[mw:Help:Extension:Kartographer#GeoShapes_via_Wikidata_Query|GeoShapes_via_Wikidata_Query]]). A map of highwsys in Kerala is constructed from numerous OSM items in the [[List of state highways in Kerala]] article. Unfortunately, I can't explain how this works. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 06:30, 15 August 2018 (UTC)
::That query actually just specifies multiple Wikidata items, specifically items which are highways (have {{wpl|P31}}: {{Q|269949}}) and are in India (have {{wpl|P17}}: {{Q|668}}) and are state highways (have {{wpl|P16}}: {{Q|6640541}}). It still won't allowing for different styling for different sections of a single road. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 07:40, 15 August 2018 (UTC)
== Error using decimal format ==
Line 25 ⟶ 88:
:{{ping|Zzyzx11}} {{Fixed}} - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 06:15, 28 August 2018 (UTC)
:: it is displaying +dec_lat when the input is a -dec_lat, Japan instead of Mitagong [[User:Dave Rave|Dave Rave]] ([[User talk:Dave Rave|talk]]) 08:23, 12 November 2018 (UTC)
== Performance problem (?) ==
[[New York State Route 22]], a featured article, is currently in [[: Category:Pages with script errors]] due to {{error|The time allocated for running scripts has expired.}} errors, six of which appear at the end. Looking at the page source I see this for the template etc. usage:
Transclusion expansion time report (%,ms,calls,template)
100.00% 10679.829 1 -total
87.82% 9378.499 1 Template:Infobox_road
87.50% 9345.154 1 Template:Infobox
85.65% 9146.937 1 Template:Maplink
5.11% 545.769 2 Template:Reflist
3.71% 396.299 73 Template:NYint
1.86% 198.436 83 Template:Jct
1.25% 133.426 24 Template:Cite_map
1.00% 106.684 12 Template:Fix
0.87% 93.282 47 Template:Convert
Almost all of the time is due to this template (ignore the infoboxes, which include it so also have a high cost). I don’t see why as the template does not seem as it should be expensive, and is widely used so any problems would have shown up already. Perhaps there is something about this article that causes particular problems for it.--<small>[[User:JohnBlackburne|JohnBlackburne]]</small><sup>[[User_talk:JohnBlackburne|words]]</sup><sub style="margin-left:-2.0ex;">[[Special:Contributions/JohnBlackburne|deeds]]</sub> 13:53, 7 October 2018 (UTC)
: OK, I can see one reason it might be expensive. It is not just drawing a map but drawing the road. The KML for it is here: [[Wikipedia:Map data/Wikipedia KML/New York State Route 22]] and that is a lot of data. Pinging {{U|Fredddie}} who created that data and might have some ideas why it is so expensive.--<small>[[User:JohnBlackburne|JohnBlackburne]]</small><sup>[[User_talk:JohnBlackburne|words]]</sup><sub style="margin-left:-2.0ex;">[[Special:Contributions/JohnBlackburne|deeds]]</sub> 13:58, 7 October 2018 (UTC)
::{{ping|JohnBlackburne}} I copied the data over to [[commons:Data:New York State Route 22.map]]. Could you run those numbers again? My thinking is that now that the map is being drawn on the Commons side, performance on the ENWP should be better. I could be entirely wrong, but hey, it's worth a shot. –[[User:Fredddie|Fredddie]][[User talk:Fredddie|™]] 14:15, 7 October 2018 (UTC)
:::The article problem now seems fixed – it’s not just reduced the cost but eliminated it as best I can tell. The commons page takes a few seconds to render but I guess that’s not a problem. I have no experience of this sort of map, but whatever you did seems to have resolved it.--<small>[[User:JohnBlackburne|JohnBlackburne]]</small><sup>[[User_talk:JohnBlackburne|words]]</sup><sub style="margin-left:-2.0ex;">[[Special:Contributions/JohnBlackburne|deeds]]</sub> 14:26, 7 October 2018 (UTC)
== Multipoint shapes from OSM ==
Wind farms are essentially a collection of point features (each wind turbine tower). Open Street Map has a node for each turbine. I have created a few OSM Relation entities consisting of the collection of all the towers in the farm, with attributes that apply to the farm as a whole (power output, wikidata ID etc). Is it possible to render this OSM multipoint relation in Wikipedia? An example is [[Snowtown Wind Farm]]. If this cannot work as currently set up, is there a better way of doing it, and what should that look like (in Wikipedia, Wikidata and OSM)? --[[User:ScottDavis|Scott Davis]] <sup>[[User talk:ScottDavis|Talk]]</sup> 01:26, 22 November 2018 (UTC)
== Inconsistent behavior of when using inverse-shape ==
Today I noticed that when you enlarge the interactive map on [[Washington, D.C.]], it doesn't show the shape at all.
{{maplink|frame=yes|frame-width=285|frame-height=285|zoom=8|id=Q61|type=shape-inverse}}
If you copy the code (<nowiki>{{maplink|frame=yes|plain=y|frame-width=285|frame-height=285|zoom=8|id=Q61|type=shape-inverse}}</nowiki>) somewhere else (see right), it's getting worse there: it doesn't even show the shape in the frame. Keep in mind I kept the <code>id=</code> part, so it's supposed to work.
=== Part 2 ===
I can't seem to reproduce this bug with other data, but found another inconsistency:
*<nowiki>{{maplink|type=shape-inverse|id=Q1094308|text=Inverted shape (no frame)}} </nowiki>
*{{maplink|type=shape-inverse|id=Q1094308|text=Inverted shape (no frame)}}
*<nowiki>{{maplink|frame=yes|type=shape-inverse|id=Q1094308|text=Inverted shape (has frame)}} </nowiki>
*{{maplink|frame=yes|type=shape-inverse|id=Q1094308|text=Inverted shape (has frame)}}
As you can see I have two exactly same maplink, but only the second one has frame.
* When you click the first one (link), the enlarged interactive map zooms out all the way to global;
* When you click on the second one (frame), however, the enlarged interactive maps zooms in to the area selected (better behavior) The frame itself still shows global, though. --[[User:Fireattack|fireattack]] ([[User talk:Fireattack|talk]]) 20:18, 1 February 2019 (UTC)
{{clear}}<!-- add comments above this line -->
== Where to report problem with the Wikimedia map? ==
{{maplink
|type=point|coord={{coord|60|6|0|N|19|56|0|E}}
|frame=yes|frame-width=500|frame-height=500
|zoom=7
|text=Map 1: The "land layer" for Entire Åland is missing on the Wikimedia map.
}}
{{maplink
|type=point|coord={{coord|60|6|0|N|19|56|0|E}}
|frame=yes|frame-width=500|frame-height=500
|zoom=10
|text=Map 2: Some roads and names appear when zoomed, but the land is still missing.
}}
Sorry if this is the wrong place to report this.
It seems that the island [[Åland]], more than 1,500 km<sup>2</sup>, is missing on [https://maps.wikimedia.org/#9/60.1333/20.1640 the Wikimedia map] used by the Maplink template, see Map 1. Some roads and places are displayed when you zoom in, but the "layer" for land is completely missing, see Map 2. Compare this to [https://www.openstreetmap.org/search?query=%C3%85land#map=8/60.174/20.212 OpenStreetMap].
--[[User:Larske|Larske]] ([[User talk:Larske|talk]]) 06:14, 18 February 2019 (UTC)
:{{ping|Larske}} Errors that appear on Wikimedia maps, but not OSM maps, can be reported on [[phab:|Phabricator]] (you can log in with you Wikipedia account). See [[mw:How to report a bug]] for instructions (for the tags, use {{kbd|Maps}}) - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 23:40, 19 February 2019 (UTC)
::Thanks, I will do that. --[[User:Larske|Larske]] ([[User talk:Larske|talk]]) 23:53, 19 February 2019 (UTC)
{{clear}}
:::At least another European island, [[Kronshtadtsky District|Kronshtadt]], is also missing from the map.--[[User:Underlying lk|eh bien mon prince]] ([[User talk:Underlying lk|talk]]) 20:58, 1 March 2019 (UTC)
== Map kills iOS Wikipedia app ==
{{tracked|T216576}}
This is great in Chrome desktop. While trying to implement it myself I discovered that it crashes the Wikipedia app on iOS. Steps to repro:
# In the article e.g. [[New York City]] in the app, tap Quick Facts to open the infobox.
# Scroll down the "Interactive map" and tap it. The screen flickers white then returns to its previous state.
# Tap the map again. The screen goes almost completely white.
# Can no longer interact with the Wikipedia app, and it has to be force killed.
--[[User:Cornellier|Cornellier]] ([[User talk:Cornellier|talk]]) 14:12, 19 February 2019 (UTC)
== geoshapes not being displayed ==
{{maplink|type=shape|frame=yes|id=Q1651069|text=The shape of the district is not being displayed, even though the QID is linked to the OSM shape}}
Some geoshapes selected through the [[Template:Maplink#Raw_Wikidata_query_example|query function]] of this template are not being displayed, even though the Wikidata item is correctly linked to the [https://www.openstreetmap.org/relation/1698924 OSM relation] and the item shows up on the [https://query.wikidata.org/#SELECT%20%3Fid%0A%20%20%28if%28BOUND%28%3Flink%29%2C%0A%20%20%20%20%20%20concat%28%27%5B%5B%27%2C%20substr%28str%28%3Flink%29%2C31%2C500%29%2C%20%20%27%7B%7B%21%7D%7D%27%2C%20%3FidLabel%2C%20%27%5D%5D%27%29%2C%0A%20%20%20%20%20%20%3FidLabel%29%0A%20%20%20as%20%3Ftitle%29%0AWHERE%20%7B%0A%20%20%7B%20%3Fid%20p%3AP31%2Fps%3AP31%2Fwdt%3AP279%2a%20wd%3AQ2198484%20.%0A%20%20hint%3APrior%20hint%3Agearing%20%27forward%27%20%0A%7D%0A%20%20UNION%0A%20%20%7B%20%3Fid%20p%3AP31%2Fps%3AP31%2Fwdt%3AP279%2a%20wd%3AQ13626398%20.%20%0A%20%20hint%3APrior%20hint%3Agearing%20%27forward%27%20%0A%7D%20%20%0A%20%20UNION%0A%20%20%7B%20%3Fid%20p%3AP31%2Fps%3AP31%2Fwdt%3AP279%2a%20wd%3AQ4057820%20.%20%0A%20%20hint%3APrior%20hint%3Agearing%20%27forward%27%20%0A%7D%20%20%0A%20%20%3Fid%20p%3AP131%20%3Flocst%20.%0A%20%20%3Flocst%20ps%3AP131%2Fwdt%3AP131%2a%20wd%3AQ2596.%0A%20%20hint%3APrior%20hint%3Agearing%20%27forward%27%20%0A%20%20MINUS%20%7B%20%3Flocst%20pq%3AP582%20%5B%5D%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%27en%27%20.%0A%20%20%20%20%3Fid%20rdfs%3Alabel%20%3FidLabel%20.%0A%20%20%7D%0A%20%20OPTIONAL%20%7B%3Flink%20schema%3Aabout%20%3Fid%20.%0A%20%20%3Flink%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fen.wikipedia.org%2F%3E%20.%20%7D%0A%7D%20%0AGROUP%20BY%20%3Fid%20%3Flink%20%3FidLabel Wikidata query] itself. [[Antropovsky District]] is but one example of this (notice how it is not shown on the ___location map). I can't figure out the cause of this, and would be grateful for any help.--[[User:Underlying lk|eh bien mon prince]] ([[User talk:Underlying lk|talk]]) 19:27, 8 March 2019 (UTC)
:In fact, even calling {{tl|maplink}} directly doesn't help (see transclusion to the right).--[[User:Underlying lk|eh bien mon prince]] ([[User talk:Underlying lk|talk]]) 19:31, 8 March 2019 (UTC)
::@[[User:Underlying lk|eh bien mon prince]]: The shape is showing up for me in this maplink transclusion. Not sure why you didn't see it – perhaps a caching issue? It can take some time (up to 24 hours I think) for changes to map relations/features to show up on wikimedia maps. (Also, note that in order to be displayed on maps it's actually the OSM relation/feature that has to be tagged with the wikidata QID – the link to OSM from the wikidata item is merely for convenience.) One other thing you can try is using {{tag|mapframe}} tags directly per [[mw:Help:Extension:Kartographer#GeoShapes via Wikidata Query]] – if it doesn't work like that, then the problem is with the MediaWiki extension. Or if it does work, then we can try to figure out why it doesn't work with this template. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 00:54, 9 March 2019 (UTC)
:::Thanks for the reply. I tried to clear the cache, and open this page on different browsers (Firefox/Chrome), and I still cannot see the shape. If you go to [[Antropovsky District]], do you see the district highlighted in red within the ___location map? Curiously enough, trying to use {{tag|mapframe}} directly fails to display anything at all, at least in this [[Template:Russia district OSM map/sandbox|sandbox attempt]].--[[User:Underlying lk|eh bien mon prince]] ([[User talk:Underlying lk|talk]]) 11:01, 9 March 2019 (UTC)
:::Not showing for me here - I see a world map in saved view, and a zoomed in in edit-preview. On [[Antropovsky District]] neither, where additionally the area north of it is not marked as part of Kostroma Oblast. Sandbox shows nothing. [[Special:Contributions/77.183.233.64|77.183.233.64]] ([[User talk:77.183.233.64|talk]]) 08:46, 11 March 2019 (UTC)
::::→[[File:Antropovsky District with mapframe map.png|thumb]] This is what I see for [[Antropovsky District]], the mapframe map seems to be working as expected. Not sure what's happening with the sandbox, that's showing up blank for me too. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 09:34, 11 March 2019 (UTC)
:::Not showing for me on the above map, too. -- [[User:Luitzen|Luitzen]] ([[User talk:Luitzen|talk]]) 19:24, 21 March 2019 (UTC)
== Crossing the 180th meridian ==
{{tracked|T144777}}
{{maplink|frame=yes|type=shape|id=Q7984|zoom=3}}
Shapes that cross the antimeridian seem to be consistently sliced into two (see the transcluded map of [[Chukotka Autonomous Okrug]] for an example of this).--[[User:Underlying lk|eh bien mon prince]] ([[User talk:Underlying lk|talk]]) 11:08, 9 March 2019 (UTC)
:And when opened to full screen, the eastern part of entity is not marked. [[Special:Contributions/77.183.233.64|77.183.233.64]] ([[User talk:77.183.233.64|talk]]) 08:38, 11 March 2019 (UTC)
::There's a bug report for this at [[phab:T144777]] - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 09:41, 11 March 2019 (UTC)
== [[Template:Infobox power station/sandbox]] ==
Hello. Can someone help me figure out what is causing this error? I can't seem to figure it out... Basically, I'm trying to instate these functions, but I don't know which part is causing the errors:
# If coordinates are not set locally, it should fetch from wikidata
# If coordinates are set locally, wikidata values should be ignored
# If <code>|location_map = no</code> the display of ___location map (i.e. mapframe) should be suppressed (all other values are to be ignored)
# If no coordinates are set locally nor on wikidata, the display of ___location map (i.e. mapframe) should be suppressed, and the respective caption parameter should not be displayed.
Thanks in advance! [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 13:53, 9 March 2019 (UTC)
:{{ping|Rehman}} It sounds like what you want is {{tl|Infobox mapframe}}, but with an override for when coordinates are specified locally. It shouldn't be too hard to add that option to {{tl|Infobox mapframe}}. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 01:19, 10 March 2019 (UTC)
::[[User:Evad37|Evad]]: Yes exactly, it is missing the local override option. I'm unable to add myself as Lua is not something I'm good at. Would you be able to add that feature please? [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 01:51, 10 March 2019 (UTC)
:::{{ping|Rehman}} {{done}} - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 02:06, 10 March 2019 (UTC)
::::Thanks a lot [[User:Evad37|Evad37]], that was bothering me for a while! :) [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 06:34, 10 March 2019 (UTC)
::::[[User:Evad37|Evad37]], do you also see articles such as [[Mampuri Wind Farms]] with a blank ___location map? The map displays well in edit-preview though... [[Lakvijaya Power Station|Articles with the region set]] seems to be working.... [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 06:44, 10 March 2019 (UTC)
::::Sometimes a [[WP:NULL]] edit is required to make the maps work, which I've just done for [[Mampuri Wind Farms]]. Maps behaving a bit differently in preview mode is a known issue, there's a bug report for it somewhere on [[phab:|Phabricator]] - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 08:07, 10 March 2019 (UTC)
:::::Thank you. [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 15:37, 12 March 2019 (UTC)
== Zoom buttons ==
Hi. Is it just me, or has the in-article zoom buttons disappeared from the maps? I remember a <code>+</code> and <code>-</code> on the top-left corner of mapframes, but now they are gone. Strangely, the buttons are still there in the edit-preview mode. [[Taichung Power Plant|See here for example]]. [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 03:55, 15 March 2019 (UTC)
:On Wikipedia, and most wikis other than Wikivoyage, the emdeded thumbnail is a static map, and the full screen map needs to be opened before the map can be zoomed or panned – per [[mw:Help:Extension:Kartographer#Getting started]]. That preview mode shows an interactive map is a bug, [[phab:T203863]]. Further explanation can be found in the comments on [[phab:T202793]] - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 23:36, 15 March 2019 (UTC)
::Thanks [[User:Evad37]]. I could swear I saw the zoom buttons in normal live mode a few months back... Strange. I guess these limitations were put in place to reduce stress on the servers? I noticed the "full" version is live on Meta and Wikidata (example: {{Q|Q6479997}}), so it is technically possible. [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 01:31, 16 March 2019 (UTC)
:: So what I thought was the bug is a deliberate choice and the bug is edit mode showing the documented behaviour? The description at [[mw:Help:Extension:Kartographer]] describes interactive maps embedded on the page and makes one expect an embedded interactive map, as you see in editor mode or on the test wikipedia. Why and when was it chosen to disable this behaviour? It's annoying and makes these maps less desirable. I thought the behaviour had changed and was a bug that would be resolved when the newer software on the test wiki became active. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 08:23, 16 March 2019 (UTC)
:::"''annoying and makes these maps less desirable''" - completely agree. [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 14:10, 25 March 2019 (UTC)
:::{{u|Jts1882}}, I'm not entirely positive, but the reason that we have static images, as I remember it from that time it was launched, was partly for performance reasons (it's a lot of dynamic content to deliver etc. especially on mobile) as well as to have the ability to present some content for people who disabled javascript, for printing etc. The edit mode is registered as a bug, but there too it is actually a performance issue (static rendering is expensive, so doing it for a single user reduces the performance of the preview action too much.)
:::My personal question is.. why NOT click the mapframe to open fullscreen ? Why would you use a stamp sized frame to interact with a map ? —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 14:56, 25 March 2019 (UTC)
:::: To keep everything on the same page. Sometimes it is useful to be able to move in the map while comparing with an adjacent information (in infobox or table). To be honest, I can't remember exactly why it struck me as so irritating, just that I remember it that way. I was also surprised by the behaviour as it deviated from the documentation (now changed) and from the behaviour I was seeing while developing a module using the maps. I must have being doing nearly everything in preview mode as I didn't notice the different behaviour on the published page until months later (or was the behaviour changed after it was introduced). In general I think it is possible to find an alternative static image map that is better than the map provided in mapframe, with the interactive nature of the latter making the difference. If it needs to be expanded to get the benefits, the advantage is lessened in some cases. Well, if it is a performance issue, then that must be how it is. It is good to know the reason, so thanks for the explanation. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 15:28, 25 March 2019 (UTC)
== Maps don't load on initial page load ==
[[File:Maplink rendering bug 2019-03-23.png|thumb|right|What User:Fredddie sees on I-64]] Something I've noticed lately is that quite often, map previews won't load on the initial page load. Specifically, maps embedded in {{tlx|Infobox road}}. For instance, the map I created for [[Interstate 64 in Indiana]] will not load for me in the infobox. If I click where the map should be, the map will load and I can see what's supposed to be there, when I close the full screen map, there is nothing in the infobox. I'm not sure what the problem is or if it's just on my end. –[[User:Fredddie|Fredddie]][[User talk:Fredddie|™]] 20:19, 23 March 2019 (UTC)
:{{ping|Fredddie}} I've noticed that often a [[WP:NULL]] edit is required to make the thumbnail map display, after a mapframe map is first added to the page or is edited. Or sometimes several null edits. It's probably something like a [[Help:job queue|job queue]] for generating the static thumbnail images being busy, or getting stuck, or something. Anyway, at the moment the thumbnail map in [[Interstate 64 in Indiana]] is displaying for me. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 23:58, 23 March 2019 (UTC)
::{{u|Evad37}}, if you look in the browser console, you get "error 404 https://maps.wikimedia.org/img/osm-intl,7,38.236,-86.916,290x250.png?lang=en&___domain=en.wikipedia.org&title=Interstate+64+in+Indiana&groups=_e148a7b8906462f909c54753cb49d72a80a0d758". Opening the image gives "GroupId not available". I suspect this has something to do with the problems with PHP7.2 being tested, which is [[phab:T214984]]. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 14:17, 24 March 2019 (UTC)
:::I did enable the PHP7 beta feature, so that may be part of it as well. –[[User:Fredddie|Fredddie]][[User talk:Fredddie|™]] 13:35, 21 April 2019 (UTC)
== Map rendering as a static image, with full screen button not working ==
Hi all, I've been trying to create a maplink template to show rail lines in Melbourne, you can see the map on my user page or here: https://en.wikipedia.org/wiki/Railways_in_Melbourne#Infrastructure
The interactive map works well on previewing edits, but when I publish it renders as a static image. This isn't a huge issue except the full-screen button seems to not work either, and is just a static unclickable image too. Does anyone know why this is happening? Did I mess up the template or is the map just too complex? Thanks. [[User:Gracchus250|Gracchus250]] ([[User talk:Gracchus250|talk]]) 02:54, 20 April 2019 (UTC)
: The mapframe maps do behave differently in preview and in the published main namespace. The interactive element in the non-expanded map is disabled (because it is resource heavy, iirc), so the static image is normal, although disappointing. But the inactive full-screen button isn't usual. Have you tried reducing the number of elements in the map, say with just one line? [''edit: not this''] <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 13:05, 20 April 2019 (UTC)
:: It seems to me that the interactive element of the map has been disabled in most namespaces (main, user). They seem to still work in template namespace, but not when transluded to the main namespace. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 17:15, 20 April 2019 (UTC)
: {{ping|Gracchus250}}. The interactive maps appear to have been disabled. Some maps I created in the past in template space still work interactively in template space but not when transcluded. New maps in template space also don't work. Moreover, edits to functioning maps seem to disable them. I can't find anything to explain the chenged policy, although I assume it must be the computer overhead. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 09:52, 21 April 2019 (UTC)
:: Thanks for your help, my different tests have found a similar thing: maps sometimes working interactively on preview but changing on publish. Removing elements doesn't seem to work, though I might test this again. The behaviour does seem to be a bit inconsistent. I don't mind if it's a static image it's just a huge shame if the expand button doesn't work, because that negates the whole point of the map. Hopefully it's just a bug and not a policy change. Do you know if there's anyone to report this to? Thanks [[User:Gracchus250|Gracchus250]] ([[User talk:Gracchus250|talk]]) 11:07, 21 April 2019 (UTC)
The bug have already been reported at https://phabricator.wikimedia.org/T221439 [[User:C933103|C933103]] ([[User talk:C933103|talk]]) 15:19, 21 April 2019 (UTC)
: Ah, thank-you. It's good to know this is a temporary issue rather than another performances related restriction on the interactive functionality. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 15:53, 21 April 2019 (UTC)
:: It's still not resolved here on English Wikipedia, but the maps seem to be expanding again on Wikimedia. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 06:57, 25 April 2019 (UTC)
== Bug - Can't click to expand map from articles ==
Line 31 ⟶ 244:
:See [[phab:/T221439]]. --[[User:Lam-ang|Lam-ang]] ([[User talk:Lam-ang|talk]]) 17:29, 24 April 2019 (UTC)
::Thanks for the link; the bug has been fixed. —'''[[User:Mr. Matté|Mr. Matté]]''' (<sup>[[User talk:Mr. Matté|Talk]]</sup>/<sub>[[Special:Contributions/Mr. Matté|Contrib]]</sub>) 16:57, 25 April 2019 (UTC)
==Not getting the hang of this - help please==
There's an OSM feature - https://www.openstreetmap.org/way/96977452 - which has a wikidata QId of [https://www.wikidata.org/wiki/Q63322683 Q63322683]. Can I / how can I get a maplink showing this shape? My puny attempts - such as <nowiki>{{maplink|frame=yes|type=shape|id=Q63322683}}</nowiki> - are not working. I'd like, ideally, to be able to provide a set of maps to illustrate [[Alfred Heaver#Heaver developments]]. Grateful for any help; thx. --[[User:Tagishsimon|Tagishsimon]] ([[User talk:Tagishsimon|talk]]) 03:18, 25 April 2019 (UTC)
:{{ping|Tagishsimon}} It can take a day or so for OSM changes to become available here, per [[mw:Help:Extension:Kartographer/OSM]] - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 05:17, 25 April 2019 (UTC)
::Okay, thanks Evad37. I'll be patient :) --[[User:Tagishsimon|Tagishsimon]] ([[User talk:Tagishsimon|talk]]) 09:11, 25 April 2019 (UTC)
===Not getting hang part 2===
Sorry to be a bother again. Patience solved the above issue. Could anyone tell me where this one is falling down? OSM relation is [https://www.openstreetmap.org/relation/7715239#map=13/52.5455/-1.9126 7715239] and the wikidata QId is [https://www.wikidata.org/wiki/Q42791306 Q42791306]. All data is 12 months or so old. Thanks --[[User:Tagishsimon|Tagishsimon]] ([[User talk:Tagishsimon|talk]]) 23:48, 26 April 2019 (UTC)
{{maplink|frame=yes|type=line|zoom=12|id=Q42791306|frame-lat=52.53967|frame-long=-1.91214}}
:For relations, only those with type {{tt|multipolygon}}, {{tt|route}}, or {{tt|boundary}} will display on maps. This is a known issue, [[phab:T156433]], which unfortunately the developers are unlikely to fix anytime soon. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 00:35, 27 April 2019 (UTC)
::Thanks Evad37. Much appreciated. --[[User:Tagishsimon|Tagishsimon]] ([[User talk:Tagishsimon|talk]]) 01:03, 27 April 2019 (UTC)
{{resolved|1=[[User:Tagishsimon|Tagishsimon]] ([[User talk:Tagishsimon|talk]]) 01:02, 27 April 2019 (UTC)}}
== Too few points returned when using Wikidata ==
Line 37 ⟶ 264:
{{maplink|frame=yes|plain=yes|type=line|frame-align=center|frame-width=290|id=Q933614}}
:{{tracked|T155919}} This is a known bug with maplink/mapframe: [[phab:T155919]]. Nothing much we can do on-wiki, unfortunately. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 01:23, 25 June 2019 (UTC)
== [[Washington State Route 99]] ==
Looking at this article right now one sees only a box icon where the map should be in the infobox. Someone happened to do a [[User talk:Bsoyka#Washington State Route 99|GA review on 25 April]] and at that point the map did appear. So I'm thinking the problem is not local to the article, but in the templates. That is, the breakage is external to the article? Help? [[User:Shenme|Shenme]] ([[User talk:Shenme|talk]]) 04:05, 24 May 2019 (UTC)
:In discussing with {{u|Bsoyka}} I just noticed something that has me freaked out. The map does not display when bringing up the article. But then, click edit, then click "Show Preview" without having changed anything. For me, ''the map displays in preview''! To me, that implies strange interactions and timing with respect to Javascript imports. Youch! [[User:Shenme|Shenme]] ([[User talk:Shenme|talk]]) 05:37, 24 May 2019 (UTC)
:{{ping|Shenme}} I think this might be an issue on your end. I've checked with my PC and phone (both running Chrome) and everything seems to be in working order (with the expansion button appearing in the top right and the expanded view able to scroll around). '''[[User:SounderBruce|<span style="background:#5d9731; color:white; padding:2px;">Sounder</span>]][[User talk:SounderBruce|<span style="background:#1047AB; color:white; padding:2px;">Bruce</span>]]''' 05:57, 24 May 2019 (UTC)
::Always a possibility, which is why I checked after disabling AdblockPlus and NoScript in Chrome 74, and then tried Microsoft Edge, with same results. Now have tried my Win10 with MS IE, FireFox 66, and updated to FireFox 67, and FireFox developer edition 64, and updated to 68. And partner's separate PC running Win7 FireFox 66, updated to FireFox 67, Chrome 74. All with same results, just a boxy icon. And logged in and not logged in. I will be very interested in the answer to all this. [[User:Shenme|Shenme]] ([[User talk:Shenme|talk]]) 06:34, 24 May 2019 (UTC)
: I also only saw the box. This blank map issue comes up time to time with mapframe for some reason, but is usually temporary. I did a null edit and the map is now visible for me. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 06:53, 24 May 2019 (UTC)
Hmm, still happening to me (no map) today, trying different browsers and clearing cache, etc. Even tried a "?action=purge". Haven't tried a reboot... :) [[User:Shenme|Shenme]] ([[User talk:Shenme|talk]]) 20:42, 31 May 2019 (UTC)
== [[Interstate 75]] - bug with display ==
[[Interstate 75]] is displaying error messages of "The time allocated for running scripts has expired." I have traced the error to the maplink template. The code currently in the article is <code><nowiki>{{maplink|frame=yes|plain=yes|frame-align=center|frame-width=290|frame-height=240|frame-lat=37.00|frame-long=-84.29|zoom=3|type=line|raw={{Wikipedia:Map data/Wikipedia KML/Interstate 75}}}}</nowiki></code><!--I give consent to remove the below if it interferes with effective discussion-->, <del>which renders thus:</del> <ins>but after Fredddie's changes, it now looks like this:</ins>
{{maplink|frame=yes|plain=yes|frame-align=center|frame-width=290|frame-height=240|frame-lat=37.00|frame-long=-84.29|zoom=3|type=line|from=Interstate 75.map}}<!--End of removable text-->
I don't know the KML format enough to debug. Can somebody take a look at this and assist? Again, it was working until recently, but old versions of the page aren't rendering correctly, so all I can think of is a change to this template broke it? —'''[[User:C.Fred|C.Fred]]''' ([[User_talk:C.Fred|talk]]) 18:12, 31 May 2019 (UTC) <small>revised 00:23, 1 June 2019 (UTC)</small>
:It's not the template per se, it's the amount of data the template is trying to process. I have moved the data over to Commons at [[commons:Data:Interstate 75.map]] and changed the instance on the I-75 page, so it now displays. –[[User:Fredddie|Fredddie]][[User talk:Fredddie|™]] 20:33, 31 May 2019 (UTC)
::I wondered if that was the case, because the road is so long with so many curves. Thank you for fixing it! —'''[[User:C.Fred|C.Fred]]''' ([[User_talk:C.Fred|talk]]) 00:23, 1 June 2019 (UTC)
== Automatic zoom for highlighted areas not working ==
I added the template to [[Pinelands National Reserve]]. When I delete zoom parameter from the template, I guess it should fall back to some kind of default or automatic zoom. But what happens is only a blank white map is shown with a red dot in the middle. Is this a bug?--[[User:Kozuch|Kozuch]] ([[User talk:Kozuch|talk]]) 12:18, 15 June 2019 (UTC)
== Bug - does not ignore wd coordinates (P625) for type=line ==
Line 46 ⟶ 301:
:: I just found [[Template:Maplink/testcases]] - looks like the new sandbox version fixed many more of the test examples. Nice to see such progress.--[[User:Kozuch|Kozuch]] ([[User talk:Kozuch|talk]]) 12:03, 3 August 2019 (UTC)
::{{Done|Updated}} the live module. As I wrote on Phabricator, not working with sub-relations is [[phab:T156433]], and I'm not sure what's up with type=line not working when type=shape does – that may be another new bug. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 09:28, 4 August 2019 (UTC)
== Map with markers shows incorrect name for one Marker ==
{{Maplink|frame=yes|plain=yes|frame-width=512|frame-height=512|zoom=8|frame-lat=15.6281|frame-long=79.6035
|type=shape-inverse|id=Q15390|title=Prakasam
|type2=point|id2=Q65665421|title2=Addanki
|type3=point|id3=Q4788031|title3=Ardhaveedu
|type4=point|id4=Q6034647|title4=Inkollu |marker-color4=#ff0000
|type5=point|id5=Q11055567|title5=Ulavapadu
|type6=point|id6=Q1920249|title6=Ongole
|type7=point|id7=Q2564821|title7=Kandukur
|type8=point|id8=Q10997530|title8=Cumbum
|type9=point|id9=Q12992748|title9=Kanigiri
|type10=point|id10=Q3428202|title10=Karamchedu
|type11=point|id11=Q6445981|title11=Kurichedu
|type12=point|id12=Q11108030|title12=Kondapi
|type13=point|id13=Q6434013|title13=Kothapatnam
|type14=point|id14=Q3445032|title14=Konakanamitla
|type15=point|id15=Q6428159|title15=Komarolu
|type16=point|id16=Q3445019|title16=Korisapadu
|type17=point|id17=Q31500354|title17=Giddaluru
|type18=point|id18=Q5614653|title18=Gudlur
|type19=point|id19=Q3430274|title19=Chandrasekharapuram
|type20=point|id20=Q5100085|title20=Chinaganjam
|type21=point|id21=Q3428272|title21=Chimakurthi
|type22=point|id22=Q1193800|title22=Chirala
|type23=point|id23=Q3445658|title23=Zarugumilli
|type24=point|id24=Q11103433|title24=Janakavaram Panguluru
|type25=point|id25=Q7683175|title25=Tangutur
|type26=point|id26=Q3445028|title26=Tarlupadu
|type27=point|id27=Q7709730|title27=Thallur
|type28=point|id28=Q11106561|title28=Tripuranthakam
|type29=point|id29=Q3298990|title29=Darsi
|type30=point|id30=Q11056979|title30=Donakonda
|type31=point|id31=Q5298100|title31=Dornala
|type32=point|id32=Q6959072|title32=Naguluppalapadu
|type33=point|id33=Q3426001|title33=Parchur
|type34=point|id34=Q2563502|title34=Pamur
|type35=point|id35=Q7259403|title35=Pullalacheruvu
|type36=point|id36=Q7158955|title36=Pedacherlopalle
|type37=point|id37=Q7158947|title37=Peda Araveedu
|type38=point|id38=Q7206808|title38=Podili
|type39=point|id39=Q7227893|title39=Ponnaluru
|type40=point|id40=Q11102886|title40=Ballikurava
|type41=point|id41=Q2576080|title41=Bestavaripeta
|type42=point|id42=Q6726636|title42=Maddipadu
|type43=point|id43=Q6773012|title43=Marripudi, Prakasam
|type44=point|id44=Q11103996|title44=Markapuram |marker-color44=#ffff00
|type45=point|id45=Q11103593|title45=Martur
|type46=point|id46=Q6935837|title46=Mundlamuru
|type47=point|id47=Q11103589|title47=Yaddanapudi
|type48=point|id48=Q8052654|title48=Yerragondapalem
|type49=point|id49=Q11102655|title49=Racherla
|type50=point|id50=Q6553788|title50=Lingasamudram
|type51=point|id51=Q7918946|title51=Veligandla
|type52=point|id52=Q2563456|title52=Vetapalem
|type53=point|id53=Q7940153|title53=Voletivaripalem
|type54=point|id54=Q7420151|title54=Santhanuthala padu
|type55=point|id55=Q3429989|title55=Santhamaguluru
|type56=point|id56=Q720856|title56=Singarayakonda
|type57=point|id57=Q5651384|title57=Hanumanthunipadu
}}
In the full screen rendering title(popup) for type44 (yellow) and type4 (red) display same. Type4 should display Inkollu. [[User:Arjunaraoc|Arjunaraoc]] ([[User talk:Arjunaraoc|talk]]) 23:11, 21 July 2019 (UTC)
https://phabricator.wikimedia.org/T228608 bug logged.[[User:Arjunaraoc|Arjunaraoc]] ([[User talk:Arjunaraoc|talk]]) 06:33, 22 July 2019 (UTC)
:This must be a bug in the Mapframe script. type4=point is showing the title44= text-value. Is there someone with knowledge/access to the Lua (?) to sort this out? [[User:RobinLeicester|RobinLeicester]] ([[User talk:RobinLeicester|talk]]) 13:42, 11 February 2020 (UTC)
:: {{ping|RobinLeicester|Evad37}} The code doesn't seem to be handling the parameter suffixes properly. So {{para|type4}} is picking up the place name from {{para|title44}}. The code is too complex for me. My best guess is the string match on line 172 of [[Module:Mapframe]] is not strict enough, but I don't know how to fix it. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 15:43, 11 February 2020 (UTC)
:::{{ping|Arjunaraoc|RobinLeicester|Jts1882}} {{Fixed}} [https://en.wikipedia.org/w/index.php?title=Module%3AMapframe&type=revision&diff=940357914&oldid=937309833]. It was that line, though why it only affected a few parameters like {{para|title4}} and {{para|title44}}, and not others, is beyond me. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 02:26, 12 February 2020 (UTC)
{{clear}}
== Discussion on addition of this template to articles ==
See [[Wikipedia:Administrators'_noticeboard/Incidents#OpenStreetMap_advertising?]]. [[User:Nemo_bis|Nemo]] 18:14, 28 July 2019 (UTC)
:This seems to have been moved a few times, and is now at [[Wikipedia:Village pump (proposals)#OpenStreetMap]]. ―[[special:contributions/cobaltcigs|cobaltcigs]] 23:09, 5 August 2019 (UTC)
== FM 812 ==
I think I'm having a problem similar to User:Shenme (in above section [[#Washington State Route 99]]) on [[Farm to Market Road 812]] in that the road line is visible in preview but not on the saved page. But only this article and not any others where I've recently added maps. ―[[special:contributions/cobaltcigs|cobaltcigs]] 11:25, 2 August 2019 (UTC)
{| class="wikitable" style="text-align:center;"
| {{maplink|id=Q2504842|frame=yes|plain=yes|frame-lat=30.406|frame-long=-97.669|zoom=9|type=line}}
| {{maplink|id=Q2504873|frame=yes|plain=yes|frame-lat=30.05|frame-long=-97.57|zoom=10|type=line}}
|-
| [[Farm to Market Road 734|FM 734]]
| [[Farm to Market Road 812|FM 812]]
|}
Problem seems reproducible in above right map (try preview vs. saved page) which seems to imply something other than a caching issue with the [[Farm to Market Road 812|FM 812]] article itself. Please advise if I've done something different/wrong on the corresponding relation [https://www.openstreetmap.org/relation/2538184 #2538184] vs. [https://www.openstreetmap.org/relation/2534475 #2534475] over on OSM. ―[[special:contributions/cobaltcigs|cobaltcigs]] 11:40, 2 August 2019 (UTC)
:The map in [[Farm to Market Road 812]] is displaying for me on the saved page, but not in the above map (as of now). The difference between preview and the saved page would be because preview uses ''dynamic'' thumbnails (you can drag the map around with your mouse, and change zoom levels), whereas the saved page uses a ''static'' thumbnail image... so it could very well be a caching-related issue. Sometimes [[WP:NULL]] edits (or other subsequent edits) can help. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 02:12, 3 August 2019 (UTC)
{{resolved}} Seems to be working now, despite not having been edited. ―[[special:contributions/cobaltcigs|cobaltcigs]] 10:55, 4 August 2019 (UTC)
:A new version of [[Module:Mapframe]] was pushed to production few hours ago which may have fixed your issue.--[[User:Kozuch|Kozuch]] ([[User talk:Kozuch|talk]]) 11:00, 4 August 2019 (UTC)
== Bug problem? ==
Hello, can someone explain to me what actually happen to this map as seen from the article infobox of [[Bintulu]], [[George Town, Penang|George Town]], [[Iskandar Puteri]], [[Johor Bahru]], [[Kota Kinabalu]], [[Kuala Terengganu]], [[Miri, Malaysia|Miri]], [[Sandakan]], [[Sibu]] and [[Tawau]]? Thank you. <b style="white-space:nowrap;text-shadow:#FFFFE0 0em 0em 0.8em,#F08080 -0.8em -0.8em 0.9em,#DC143C 0.7em 0.7em 0.8em;color:#7CFC00"> [[User:Night Lantern|Night Lantern]]</b>[[User talk:Night Lantern|<span style="color:Pink"><sup>halo?</sup></span>]] 08:08, 16 August 2019 (UTC)
: I can tell you what is happenning but not why. The map is not picking up the correct coordinates. I've added the coordinates to the maplink template in the infobox of [[Bintulu]] and the map displays correctly. The coordinates at Wikidata seem correct so I can't explain why the default is getting the wrong coordinates. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 10:27, 16 August 2019 (UTC)
::I see.. I also wondered if someone changed something in Wikidata but can't see something different in the history log. Anyway, thanks for the fix in Bintulu! <b style="white-space:nowrap;text-shadow:#FFFFE0 0em 0em 0.8em,#F08080 -0.8em -0.8em 0.9em,#DC143C 0.7em 0.7em 0.8em;color:#7CFC00"> [[User:Night Lantern|Night Lantern]]</b>[[User talk:Night Lantern|<span style="color:Pink"><sup>halo?</sup></span>]] 10:32, 16 August 2019 (UTC)
== Basemap bug ==
I don't know to whom or where to file a bug report, but Lake Huron is gone. –[[User:Fredddie|Fredddie]][[User talk:Fredddie|™]] 02:14, 27 August 2019 (UTC)
== Interstate 45 ==
Line 106 ⟶ 465:
:{{Ping|Frietjes}} The module now refers to <code>L10n.defaults.markerSize</code> on line 254, but markerSize wasn't added to the L10n.defaults table (lines 98-106), so it evaluates to <code>nil</code>. I think that probably wasn't your intention, but in any case, the code would be clearer if either a default markerSize was added to the L10n.defaults table, or if <code>nil</code> was used directly rather than a non-existent table key. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 15:23, 24 October 2019 (UTC)
::{{Ping|Evad37}} that was my intention, since the default was to not set that value, but we can explicitly set the default value to nil if you like that better. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 19:03, 24 October 2019 (UTC)
== Timeout errors ==
[[Minnesota State Highway 65]] is currently showing numerous "The time allocated for running scripts has expired" errors. They are due to the following line in the infobox:
<pre>
|map={{maplink|frame=yes|plain=yes|frame-align=center|frame-width=290|frame-height=240|type=line|raw={{Wikipedia:Map data/Wikipedia KML/Minnesota State Highway 65}}}}
</pre>
That sets <code>raw</code> from [[Wikipedia:Map data/Wikipedia KML/Minnesota State Highway 65]] which is 88 kilobytes.
I have seen this error in other articles before. I don't recall the details but I don't think anything was done to fix them. Instead, it looks as if some caching made the articles work once the server was sufficiently idle to allow it to successfully render the page (that's a guess). {{ping|Evad37}} You have done a lot of work on [[Module:Mapframe]]. Do you know what the fundamental problem is? {{ping|Sable232}} You tried to fix the error and may be interested in this discussion. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 08:46, 22 January 2020 (UTC)
:I think 88kb is too big for the Lua to handle – it is significantly larger than several map data pages I chose semi-randomly from [[Special:PrefixIndex/Wikipedia:Map_data/]]. The module isn't actually doing that much with the raw data – just triming whitespace and control characters (which can break the map if present), and at the end the constructed {{tag|mapframe}} tag is [[mw:Extension:Scribunto/Lua_reference_manual#frame:preprocess|preprocessed]] so the map is shown in the article. This last step is what seems to be taking up the time, according to the parser profiling information shown when previewing [https://en.wikipedia.org/w/index.php?title=Minnesota_State_Highway_65&oldid=936954473&action=edit§ion=0] - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 13:30, 22 January 2020 (UTC)
:Expanding the maplink template via [[Special:ExpandTemplates]] got rid of the script timeout error, but is hardly ideal since now there's 88kb of map data in the article. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 13:36, 22 January 2020 (UTC)
:Pinging map data page creator {{ping|420Traveler}} so they are aware of this issue - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 13:42, 22 January 2020 (UTC)
::Thanks, that is a good edit you made at the article ([[Special:Diff/937023029|diff]])—it fixed the problem and it inserted a good comment and edit summary which specify the source of the map data. If this situation becomes common (as mentioned, I've seen it before), one ugly workaround would be to automate what you did. The trick would be to make a subpage of [[Wikipedia:Map data/Wikipedia KML/Minnesota State Highway 65]] (<code>/mapframe</code> or <code>/expanded</code>?) with the expanded mapframe wikitext) and transclude that into the article. I don't know a way to automate [[Special:ExpandTemplates]] but the idea would be that a two-step process would be needed to update the map: edit the map data then do something clever to quickly use ExpandTemplates to update the subpage. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 04:20, 23 January 2020 (UTC)
Two more articles have the same problem:
*[[Arizona State Route 88]] • [[Wikipedia:Map data/Wikipedia KML/Arizona State Route 88]]
*[[Minnesota State Highway 60]] • [[Wikipedia:Map data/Wikipedia KML/Minnesota State Highway 60]]
I'm listing these (and will list any others) merely to document the problem. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 06:44, 24 January 2020 (UTC)
:Both are currently working for me, though the Lua time usage is quite high – 8.633s and 9.030s out of the 10s limit. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 08:39, 24 January 2020 (UTC)
::OK. I monitor articles that appear in [[:Category:Pages with script errors]] and the pages I mentioned were in that category, but are no longer there. I suspect that a certain amount of Lua work on a busy server may exceed 10 seconds and so give the error, while a not-busy server would do the same amount of work in under 10 seconds, and that fixes the problem. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 08:55, 24 January 2020 (UTC)
== Circular area ==
I think I know the answer to this, but I'm asking just to see if maybe there's something I'm missing. I want to create a map with circular shaded area around a central coordinate – think blast radius of 1km. My gut tells me I'm going to have a to draw a circle, but I was hoping there's some hidden parameter I could use. Any ideas? –[[User:Fredddie|Fredddie]][[User talk:Fredddie|™]] 02:30, 24 January 2020 (UTC)
:Circles aren't supported in the geoJson spec[https://stackoverflow.com/questions/16942697/geojson-circles-supported-or-not], so they have to be approximated as many-sided shapes. It is possible to code for that, e.g. [https://github.com/gabzim/circle-to-polygon] is a javascript implementation that could be converted to Lua. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 02:58, 24 January 2020 (UTC)
:{{ping|Fredddie}} {{Done}}: <code><nowiki>{{maplink|frame=yes|type=circle|radius=1000|coord={{coord|-31.95|115.85}}|fill=#00ff00}}</nowiki></code> → {{maplink|frame=yes|type=circle|radius=1000|coord={{coord|-31.95|115.85}}|fill=#00ff00|edges=200}}. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 05:52, 24 January 2020 (UTC)
::That's amazing! [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 06:53, 24 January 2020 (UTC)
:::Wow thanks. Does {{para|radius|1000}} mean that the radius is in meters? –[[User:Fredddie|Fredddie]][[User talk:Fredddie|™]] 15:30, 24 January 2020 (UTC)
::::{{para|radius}} is in metres, but you can also use {{para|radius_km}}, {{para|radius_mi}}, or {{para|radius_ft}} instead for kilometres, miles, or feet. And {{para|edges}} can be used to specify the number of edges for the polygon used to approximate the circle. The default is 32, higher values will give a smoother circle but may have an impact on the Lua resources used - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 15:45, 24 January 2020 (UTC)
== OSM relations ==
The documentation presently says {{tq|To make OpenStreetMap (OSM) features available, add the Wikidata key to the OSM relation (and wait 1 or 2 days) – see mw:Help:Extension:Kartographer#External_data and mw:Help:Extension:Kartographer/OSM for further information.}} Would it be possible (and computationally practical) to insert another option that uses {{Q|P402}} on the wikidata item regardless of whether the OSM relation has the back link to Wikidata? At present, this situation leaves a blue box (map centred on 0,0) on pages ({{tl|Infobox Australian place}} is where I have noticed) until the OSM relation is updated and a cache flushed (which takes several hours to a couple of days). --[[User:ScottDavis|Scott Davis]] <sup>[[User talk:ScottDavis|Talk]]</sup> 13:25, 24 January 2020 (UTC)
:{{re|ScottDavis}} This isn't possible from wikipedia templates/modules – it would require a change to how Kartographer extension displays OSM features on maps, which would need to be requested at [[phab:|Phabricator]]. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 02:47, 12 February 2020 (UTC)
|