错误示例:
const features = [
{
id: "a12e1",
type: "Feature",
geometry: {
type: "Point",
coordinates: [112, 30],
},
},
];
解决示例:
const features = [
{
id: 1, // id必须为数字类型
type: "Feature",
geometry: {
type: "Point",
coordinates: [112, 30],
},
}
];