//这段代码是什么意思,查询10公里以内的首都吗?
function query() {
var param = new SuperMap.QueryByDistanceParameters({
queryParams: {
name: "Capitals@World.1"
},
distance: 10, // 这个distance的单位是什么?像素?公里?
geometry: circleMarker
});
L.supermap
.queryService(url)
.queryByDistance(param, function(serviceResult) {
var result = serviceResult.result;
resultLayer = L.geoJSON(result.recordsets[0].features).addTo(map);
});
}