维基百科: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:地圖資料/子頁面}})

參見 编辑