【发布时间】:2019-09-03 18:41:48
【问题描述】:
尝试使用 Choropleth Leaflet 将 42 个国家的边界放置在地图上。显然,我只有每个国家的经纬度数据,而不是坐标列表。如何将多边形坐标添加到现有数据中?或者有没有我可以使用的 API?研究无助于我。
我的数据
"type": "Feature",
"properties": {
"country": "Austria",
"points": 89.19089810712848,
"price": 31.192106322996377
},
"geometry": {
"type": "Polygon",
"coordinates": [
13.199959,
47.2000338
]
}```
【问题讨论】: