维基百科:Map data

维基百科,自由的百科全书

使用地图资料(Map data)作为前缀来储存GeoJSON地图。

入门

GeoJSON地图不能直接上传到File的命名空间。虽然地图数据通常应存储在维基共享资源上,但在2018年8月之前,只允许使用 CC0 许可证。(参见:mw:Help:Map data)由于先前的限制,使得具有CC-BY-SA-3.0(例如CC-BY)许可的维基百科 ,可以作为子页面存储在维基百科上。

Storing data on Wikipedia subpages can allow the same data to be used in multiple articles with different features given prominent styling depending on the article title. For example, Wikipedia:Map data/Columbus Register of Historic Properties uses parser functions such as "stroke": {{#ifeq:{{PAGENAME}}|Old Oaks Historic District|"#ff0000"|"#666666"}}.

如何贡献

Created a subpage of this page. It should probably follow the convention used on Commons of /data source/title. At the start of the page, in a <noinclude>...</noinclude> section, include the {{information}} and licencing templates.

使用User:Evad37/kmlToJson英语User:Evad37/kmlToJson可以将KML档案转换成GeoJSON。

如果使用转换器输出GeoJSON,请确保双引号在正确的位置,范例:

"stroke": {{#ifeq:{{PAGENAME}}|Foo|"#ff0000"|"#666666"}}

而不是

"stroke": "{{#ifeq:{{PAGENAME}}|Foo|#ff0000|#666666}}"

显示地图资料

使用模板{{Mapbox}}{{Maplink}} (并将|raw={{Wikipedia:地图资料/子页面}})

参见