");
return iw;
}
//创建一个Icon
function createIcon(json){
var icon = new BMap.Icon("https://app.baidu.com/map/images/us_mk_icon.png", new BMap.Size(json.w,json.h),{imageOffset: new BMap.Size(-json.l,-json.t),infoWindowOffset:new BMap.Size(json.lb+5,1),offset:new BMap.Size(json.x,json.h)})
return icon;
}
//标注线数组
// var plPoints = [{style:"solid",weight:3,color:"#f00",opacity:1,points:["118.19332|24.533999","118.19315|24.534026","118.19362|24.534026","118.19344|24.534056"]}//118.169341|24.534604//118.19326|24.533993 ];
//向地图中添加线函数
function addPolyline(){
for(var i=0;i
isplay:none;
}