他們在docs.github.com上的玩具示例已損壞:
{
"type": "Polygon",
"coordinates": [
[
[-90,30],
[-90,35],
[-90,35],
[-85,35],
[-85,30]
]
]
}
它沒有按承諾呈現,甚至沒有通過linter。
我創建了一個小的reprex來表明修復 linter 問題并不能使它起作用。然后 GitHub 抱怨“我們無法使用空的未知集合渲染地圖。” 修復它似乎也無濟于事。但也許我犯了一個錯誤。
我究竟做錯了什么?
uj5u.com熱心網友回復:
解決了:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": 1,
"properties": {
"ID": 0
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-90,35],
[-90,30],
[-85,30],
[-85,35],
[-90,35]
]
]
}
}
]
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/464497.html
標籤:github 降价 geojson github-flavored-markdown
下一篇:如何為RSS提要撰寫自己的樣式
