使用产品:SuperMap iClient 7C for JavaScript 操作系统:win7 x64
问题详细描述:鼠标在世界地图拖拽,如何在获取点对应的城市,用的是世界地图。
地图地址:/iserver/services/map-world/rest/maps/World
dragFeature.onDrag=test;
dragFeature.activate();
function test(feature,pixel) {
var fea= feature;
var position = pixel;
var lonlat= map.getLonLatFromPixel(new SuperMap.Pixel(position.x,position.y));
lonlat.lat.toFixed(5);
console.log("test:", fea );
console.log("lonlat:", lonlat);
}