map = new BMap.Map("routeMap");
map.centerAndZoom("济南",17); //设置地图默认区域
map.enableDragging();
for( ){
label = new BMap.Label("途经点"+i,{offset:new BMap.Size(20,-10)});
marker = new BMap.Marker(new BMap.Point(marks[i].deviationy,marks[i].deviationx));
map.addOverlay(marker); //添加标注
marker.setLabel(label); //添加标签
}
给每个点坐标添加标签的时候出现了如下问题:
标签文字并不在红色框内, 自己写的静态页面就是正常的,不明白这是什么情况导致的