L.supermap
.featureService(url)
.getFeaturesByBounds(boundsParam, function (serviceResult) {
resultLayer = L.geoJSON(serviceResult.result.features, {
onEachFeature: function (feature, layer) {
layer.bindPopup(resources.text_capital+":" + feature.properties.CAPITAL);
}
}).addTo(map);
});
这个里面的 layer.bindPopup(resources.text_capital+":" + feature.properties.CAPITAL);参数的意思是什么,是根据什么来设置参数的。源代码在这个链接,希望可以帮我解答一下这个疑惑谢谢
http://localhost:8090/iserver/iClient/forJavaScript/examples/leaflet/editor.html#02_getFeatureByBounds