: 12, //初始化地图级别 center: [117.125809,36.679151], //初始化地图中心点位置 }) //这里添加需要的地图..., //初始化地图中心点位置 }) this.map.on('click', (e) => console.log(e)); this.addTools();...轮廓线样式 strokeDasharray: [10, 10], fillColor: "#1791fc", //圆形填充颜色 zIndex: 50, //圆形的叠加顺序...'click', { target: marker });//默认初始化不出现信息窗体,打开初始化就出现信息窗体 this.markers.push(marker); }...infoWindow.open(this.map, coordinate); //map 为当前地图的实例,map.getCenter() 用于获取地图中心点坐标。