var callbacks={
click: function(currentFeature){
closeInfoWin();
var popup = new SuperMap.Popup.FramedCloud("popwin",
new SuperMap.LonLat(currentFeature.attributes.SMSDRIW, currentFeature.attributes.SMSDRIS),
null,
"矢量图层鼠标点击事件 ",
null,
true);
infowin = popup;
map.addPopup(popup);
}
};
var selectFeature = new SuperMap.Control.SelectFeature(vector,
{
callbacks: callbacks
});
map.addControl(selectFeature);
selectFeature.activate();
}