/打开对应的信息框
var infowin = null;
function openInfoWin()
{
closeInfoWin();
var marker = this;
var lonlat = marker.getLonLat();
var size = new SuperMap.Size(0, 33);
var offset = new SuperMap.Pixel(11, -30);
var icon = new SuperMap.Icon("./theme/images/marker.png", size, offset);
var popup = new SuperMap.Popup.FramedCloud("popwin",
new SuperMap.LonLat(lonlat.lon,lonlat.lat),
null,
"鼠标点击事件 ",
icon,
true);
infowin = popup;
map.addPopup(popup);
}
//关闭信息框
function closeInfoWin(){
if(infowin){
try{
infowin.hide();
infowin.destroy();
}
catch(e){}
}
}
为什么 map.addPopup(popup);报参数无效错误