function query() {
var point1 = new SuperMap.Geometry.Point(121,37);
var geometryParam = new SuperMap.GetFeaturesByGeometryParameters({
datasetNames: ["World:Countries"],
geometry: point1,
spatialQueryMode: "INTERSECT"
});
L.supermap
.featureService(url)
.getFeaturesByGeometry(geometryParam, function (serviceResult) {
resultLayer = L.geoJSON(serviceResult.result.features, {
onEachFeature: function (feature, layer) {
layer.bindPopup(resources.text_country + ":" + feature.properties.COUNTRY);
}
}).addTo(map);
});
}
请问想判断点在哪个面要素内,这样写不可以吗?但是运算不出来,报错