案例效果图:map地图气泡有两种方式: 一种是在marker上的,这种不能够自定义样式,如果需要展示花里胡哨的,采用第一种方式,进行cover-view布局 一、首先customCallout是作为一个属性存在的,需要在marker中存在,我开发实例:varmarkers=[{iconPath:iconImg,id:resp.data.data[0].id,latitude:ss[1],longitude:ss[0],width:30,height:30,customCallout:{anchorY:0,//Y轴偏移量anchorX:0,//X轴偏移量display:'ALWAYS',//'
{{item.title}} 在线 //covers要和上面自定义气泡中循环名字相同否则不生效covers:[{ id:0, latitude:23.13065,//纬度 longitude:113.3274,//经度 iconPath:'/static/img/state2.png',//显示的图标 rotate:0,//旋转度数 width:30,//宽 height:30,//高