该类数据是一个字典
字典结构如下:
{“type”: “FeatureCollection”, “features”: [{“id”: “0”, “type”: “Feature”, “properties”: {“Ang”: 340.0, “AvgeRSRQ”: -82.25, “CellMRCount”: 2660.0, “Ci”:
“37243111”, “Lat”: 31.61751, “Lon”: 118.49173, “Mrlat”: 31.6026, “Mrlon”: 118.4922, “countpecent”: 0.913890878123367, “geodirectionfromcell”: 176.359820
87210465, “geodirectionfromplace”: 356.35982084860154, “geodistance”: 1731.26291409, “totalpower”: -218785.0, “\u5c0f\u533a\u540d\u79f0”: “MAS-FH-CTMY\u
6e56\u897f\u8def\u4e0e\u9a6c\u6ea7\u9ad8\u901f\u8def\u53e3-1”}, “geometry”: {“type”: “Polygon”, “coordinates”: [[[118.49193306029817, 31.6023776878674],
[118.49245974999523, 31.602371534493244], [118.49246694096948, 31.602822311527742], [118.49194024873701, 31.602828465009782], [118.49193306029817, 31.6
023776878674]]]}},
所以读取时应分层读取数据
L.polyline([[selectmrjs[“features”][i][“properties”][“Lat”],selectmrjs[“features”][i][“properties”][“Lon”]],[selectmrjs[“features”][i][“properties”][“Mrlat”],selectmrjs[“features”][i][“properties”][“Mrlon”]]]).addTo(map)