我有一个字符串变量作为javascript中的statesData,当我在控制台中将它作为console.log(statesData)打印时,它给我输出为
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
74.987712893238,
16.4611124595779
],
[
75.0794873366632,
16.4216041790002
],
[
74.9914167945422,
16.5154363453721
],
[
74.987712893238,
16.4611124595779
]
]
]
},
"properties": {
"f1": "Bagalkot District",
"f2": 4,
"f3": 0.0327269593968744
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
75.6708769115599,
14.7838624856797
],
[
75.7046235678866,
14.7698699696418
],
[
75.7497789666211,
14.9338893073175
],
[
75.6988619436357,
14.9320185378459
],
[
75.721037483182,
14.8603111097135
],
[
75.6708769115599,
14.7838624856797
] …Run Code Online (Sandbox Code Playgroud)