例如:想做一个简单的范围查询,以下面的代码为示例:
function query() {
map.on('click',function (e){
var yuan=L.circle([e.latlng.lat,e.latlng.lng], {
color: 'green',
fillOpacity: 0.2, //透明度
radius: 1500000
});
Layer = yuan.addTo(map);
var boundsParam = new SuperMap.GetFeaturesByBoundsParameters({
datasetNames: ["World:Capitals"],
bounds: Layer.getBounds()
});
L.supermap
.featureService(url)
.getFeaturesByBounds(boundsParam, function (serviceResult) {
console.log(serviceResult.result.features);
resultLayer = L.geoJSON(serviceResult.result.features, {
onEachFeature: function (feature, layer) {
layer.bindPopup(resources.text_capital+":" + feature.properties.CAPITAL);
}
}).addTo(map);
});
});
}
但是需要查询的url的数据既不是墨卡托又不是4326的坐标系,为他们使用的当地坐标系,怎么才可以查出来数据