您可以试试用onSelect方法
//声明一个矢量图层 vectorLayer,在 vectorLayer 上进行要素选择
vectorLayer = new SuperMap.Layer.Vector("Vector Layer");
//实例化 selectFeature 控件,调用了 onSelect 和 onUnselect 方法
//地物被选中时调用 onSelect 方法,地物被取消选中时调用 onUnselect 方法
selectFeature = new SuperMap.Control.SelectFeature(vectorLayer,
{onSelect:onFeatureSelect,onUnselect:onUnFeatureSelect});
//map上添加控件
map.addControl(selectFeature);
//激活控件
selectFeature.activate();
//要素被选中时调用此函数,需要传入当前选中要素参数feature
function onFeatureSelect(feature) {
//TODO
}
//要素被取消选中时调用此函数,需要传入当前要素参数feature
function onUnFeatureSelect(feature) {
//TODO
}