|
按文档上一样直接考下来,背景改下
aMap.addAnnotations({
annotations:[{lon:lon*1, lat:lat*1, id:10000, w:26,h:26}],
icons: ["widget://image/new/rwico.png"],
selectedIcons: ["widget://image/new/rwico.png"]
}, function(ret){
if (ret.eventType == 'click') {
aMap.setBubble({
id: ret.id,
bgImg: 'widget://image/new/qipao.png',
content: {
title: '大标题',
subTitle: '概述内容',
},
styles: {
titleColor: '#000',
titleSize: 16,
subTitleColor: '#999',
subTitleSize: 12,
illusAlign: 'left'
}
}, function(ret) {
if (ret) {
alert(JSON.stringify(ret));
}
});
}
}); |
|