|
执行如下代码,
navigator.baiduMap.base.open({.....});
navigator.baiduMap.base.addAnnotations([{
id:1,
title:"标题",
subTitle:"子标题",
lon:116.397,
lat:39.910,
draggable:true,
color:navigator.baiduMap.base.annotationColor.Red
},{
id:2,
title:"标题2",
subTitle:"子标题2",
lon:116.387,
lat:39.910,
draggable:false,
color:navigator.baiduMap.base.annotationColor.Purple
},{
id:3,
title:"标题3",
subTitle:"子标题3",
lon:116.397,
lat:39.920,
draggable:false,
color:navigator.baiduMap.base.annotationColor.Green
}], callBack, callBack);
在地图上能看到三个大头针,但有如下问题
1、title,subTtitle没有显示,
2、三个都是红色,没有按设定的颜色显示,
3、提说明bgImgPath的传参格式吗,最好能提供样例?
|
|