function query(marker, queryUrl, name) {
if (resultLayer.value) {
map.value.removeLayer(resultLayer.value)
resultLayer.value = null
}
let point = L.point(marker)
let param = new L.supermap.QueryByGeometryParameters({
queryParams: { name },
type: 'Point',
geometry: point,
})
new L.supermap.QueryService(queryUrl).queryByGeometry(param, function (serviceResult) {
let result = serviceResult.result
resultLayer.value = L.geoJSON(result.recordsets[0].features).addTo(map.value)
})
}
我通过点击的坐标获取到的是乡镇的外围边界,应该如何去获取由村和社区组成的乡镇边界呢