使用矢量图层点击事件的js代码中其中有一步是:
var selectFeature = new SuperMap.Control.SelectFeature(tempLayer,
{
callbacks:callbacks
});
var callbacks={
click: function(currentFeature){
closeInfoWin();
var popup = new SuperMap.Popup.FramedCloud("popwin",
new SuperMap.LonLat(currentFeature.attributes.SMSDRIW, currentFeature.attributes.SMSDRIS),
null,
currentFeature.attributes.NAME,
null,
true);
infowin = popup;
map.addPopup(popup);
}
};
我有一个程序是用一个矢量图层加载多个Feature,这个Feature是线对象,当点击其中一个Feature时触发callbacks变量,我想知道怎么用currentFeature获得这条点击的线的起始点坐标?