您好,可以使用以下示例 var resultLayer = L.geoJSON(result.recordsets[0].features, {
pointToLayer: function (geoJsonPoint, latlng) {
return L.circleMarker(latlng, {
fillColor: 'blue',
weight: 1,
opacity: 1,
color: 'blue',
fillOpacity: 0.6
});
},
onEachFeature:(fea,layer)=>{
console.log(fea)
layer.bindPopup(`坐标信息${fea.geometry.coordinates}`)
}
}).addTo(map);