若要将经纬度数据生成如下格式geojson数据并用前端解析(格式参照:网址:geojson.io)
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
114.10125732421875,
27.249746156836583
],
[
113.74420166015624,
26.79465448763808
],
[
114.169921875,
26.41647024087778
],
[
114.46929931640624,
26.792202785452883
],
[
114.38690185546875,
27.178912475578