0
我需要的所有信息窗口的開放,我希望答案是C#,但我想這從多個標記打開的所有信息窗口,谷歌地圖
function myMap() {
var mapProp= {
center:new google.maps.LatLng(36.109667, 43.3575),
zoom:9,
};
var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
var locations={[36.3518, 43.3793],
[35.7981, 43.2932],
[36.1791, 43.4000],
[36.3518, 43.3793],
[35.7981, 43.2932],
[36.1791, 43.4000],
[36.3518, 43.3793],
[35.7981, 43.2932],
[36.1791, 43.4000]}
for (var i = 0; i < locations.length; i++) {
var marker = new google.maps.Marker({
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
map: map
});
var infowindow = new google.maps.InfoWindow({
content: locations[i][0],
maxWidth: 160
});
infowindow.open(map, marker);}
}
And this link doesn't have an answer for me
謝謝!我以後可能會有幾個問題,如果我在評論(這裏)中問他們可以嗎? –
取決於它是一個額外的功能還是完全不同的問題。您也可以提出不同的問題,然後在此處添加新鏈接作爲評論 –