Module talk:OSM Location map: Difference between revisions

Content deleted Content added
Add compatibility for use with wdqs within mapframe: reply, add link to Phabricator task
Line 745:
 
== Add compatibility for use with wdqs within mapframe ==
 
{{tracked|T396531}}
 
I don't feel confident enough in my lua skills to do this work in the main module but a proof of concept which adds WDQS capability:
Line 754 ⟶ 756:
 
:This looks like it would be an excellent addition, and would fill one of the gaps that the graph version used to offer. Not knowing how to use SPARQL, I have not managed to test anything yet. Do you have a working version anywhere? (Many thanks for engaging with my rustic LUA and finding the right place to add the query stuff!) [[User:RobinLeicester|RobinLeicester]] ([[User talk:RobinLeicester|talk]]) 12:21, 19 June 2025 (UTC)
::{{reply to|RobinLeicester|Seddon}} The examples are on the /doc page linked above. I’ve cleaned up the addition a bit to fix a bug (missing comma) and avoid manual escaping. (RobinLeicester, I suggest you to make more widespread use of [[mw:LUAREF#mw.text.jsonEncode|mw.text.jsonEncode()]]; I didn’t do so because I don’t know the module well enough to be able to test it.) —[[User:Tacsipacsi|Tacsipacsi]] ([[User talk:Tacsipacsi|talk]]) 12:45, 19 June 2025 (UTC)