Leaflet 将存储在语义MediaWiki子对象中的坐标传递到传单地图
我想将不同子对象字段中的多组坐标传递到地图中。我尝试将坐标存储在单独的属性值中,并这样调用它们:Leaflet 将存储在语义MediaWiki子对象中的坐标传递到传单地图,leaflet,coordinates,mediawiki,semantic-mediawiki,Leaflet,Coordinates,Mediawiki,Semantic Mediawiki,我想将不同子对象字段中的多组坐标传递到地图中。我尝试将坐标存储在单独的属性值中,并这样调用它们: <div class="LeafletPageMap">{{#ask:[[{{PAGENAME}}]] |?Has categorya coordinates |?Has categoryb coordinates}}</div> 然后打电话给: {{#display_map: {{#ask: [[-Has subobject::{{PAGENAME}}]][[Categ
<div class="LeafletPageMap">{{#ask:[[{{PAGENAME}}]]
|?Has categorya coordinates
|?Has categoryb coordinates}}</div>
然后打电话给:
{{#display_map: {{#ask: [[-Has subobject::{{PAGENAME}}]][[Category:geo, location]]
|?locationcoordinates #
|mainlabel=-
|headers=hide
|format=plainlist
|sep= ; 
}}}}
我已经能够分别得到第一组和最后一组坐标,但从来没有得到整个组。上面的代码绘制了最后一个集合,如果我将子对象重命名为
{{#subobject:1... {{#subobject:2... {{#subobject:3... {{#subobject:4...
例如,将打印第一个坐标。真的很想得到整个小组,并纳入子对象组尚未实现
任何建议都将不胜感激 将您的
ask
查询替换为:
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Category:geo, location]]
|?locationcoordinates #
|mainlabel=-
|headers=hide
|format=plainlist
|sep=;
}}
{{PAGENAME}
在主命名空间之外无法正常工作{{{#displaymap:}}
的坐标应与分隔代码>,没有花哨的细空格
也考虑不要查询页面本身,而是直接从模板或模块参数传递坐标。
< P> >用<:/P>替换您的代码>查询< /代码>查询。{{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Category:geo, location]]
|?locationcoordinates #
|mainlabel=-
|headers=hide
|format=plainlist
|sep=;
}}
{{PAGENAME}
在主命名空间之外无法正常工作{{{#displaymap:}}
的坐标应与分隔代码>,没有花哨的细空格
也考虑不要查询页面本身,而是直接从模板或模块参数传递坐标。