求做一份VC++面向对象编交作业 形式,作业为:自己完成一个图形绘制程序,包括对话框,菜单实现 60
3个回答
2016-01-04
展开全部
var bm = new BMap.Map("allmap");
bm.centerAndZoom(new BMap.Point(116.378688937,39.9076296510), 15);
var total = 0; //总记录数
var groupCount = 0; //每次转十条
if (points.length % 10 > 0) {
groupCount = (points.length / 10) + 1;
}
else {
groupCount = (points.length / 10);
}
for(var i=0;i<groupCount;i++){ //外层循环,有多少组十条
var pos = new Array();
for(var j=0;j<10;j++){ //内层循环,每组十条
if(total<points.length){ //不超过总记录数结束
var point = new BMap.Point(points[(i * 10) + j].lng,points[(i * 10) + j].lat);
pos.push(point);
}
total++;
}
bm.centerAndZoom(new BMap.Point(116.378688937,39.9076296510), 15);
var total = 0; //总记录数
var groupCount = 0; //每次转十条
if (points.length % 10 > 0) {
groupCount = (points.length / 10) + 1;
}
else {
groupCount = (points.length / 10);
}
for(var i=0;i<groupCount;i++){ //外层循环,有多少组十条
var pos = new Array();
for(var j=0;j<10;j++){ //内层循环,每组十条
if(total<points.length){ //不超过总记录数结束
var point = new BMap.Point(points[(i * 10) + j].lng,points[(i * 10) + j].lat);
pos.push(point);
}
total++;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询