我希望在兩個坐標的顯示信息窗體。代碼:let positions = [[118.915171,32.12761],[118.915171,32.12531]]; for(let i=0;i<positions.length;i++){ let marker = new AMap.Marker({ position:positions[i], }); marker.setMap(this.map); //為marker指定目標顯示地圖。 let info = new AMap.InfoWindow({ content:'<div>高德地圖</div>', offset:new AMap.Pixel(0,-28), size:new AMap.Size(200,0) }); info.open(this.map,positions[i]); }; } 問題:為什么只顯示一個信息窗體?
高德地圖兩個信息窗體只顯示一個窗體?
叮當貓咪
2018-10-09 10:17:32