代码段:
var marker = new Array();//标注
var point= new BMap.Point(jsonObj.Long, jsonObj.Lat);
marker[i] = new BMap.Marker(point);
map.addOverlay(marker[i]);
代码段:
var marker = new Array();//标注
var point= new BMap.Point(jsonObj.Long, jsonObj.Lat);
marker[i] = new BMap.Marker(point);
map.addOverlay(marker[i]);
可以设置一下文本样式
label.setStyle({
color: "red",
fontSize: "9px",
backgroundColor: "0.05",
border: "0",
fontWeight: "bold"
});