0
喜IVE maked一個谷歌地圖API V3地圖上用onclick 2信息窗口上marquer,爲什麼我的infowindow是空的?
但信息窗口是空的:
var carte = new google.maps.Map(document.getElementById("Gmap"), options);
var marqueur = new google.maps.Marker({
position: new google.maps.LatLng(43.546993,5.441062),
map: carte
});
var marqueur2 = new google.maps.Marker({
position: new google.maps.LatLng(43.529038, 5.45251),
map: carte
});
var infowindow = new google.maps.InfoWindow({
content: "<div id='content' style='color:#000 !important'>Hammam des Prêcheurs, 10 rue Felicien David 13100 Aix en Provence</div>"
});
var infowindow2 = new google.maps.InfoWindow({
content: "<div id='content2' style='color:#000 !important'>Salle Clos Beaufort 560, Rte Puy Ste Réparade, 13540 Puyricard</div>"
});
infowindow.open(carte, marqueur);
google.maps.event.addListener(marqueur, 'click', function() {
infowindow.open(carte, marqueur);
});
google.maps.event.addListener(marqueur2, 'click', function() {
infowindow2.open(carte, marqueur2);
});
任何想法來解決這個問題?
感謝
選項是不確定的。 – geocodezip
適合我(文本在白色背景上是黑色的)。你必須在你發佈的內容之外做其他事情。 – geocodezip
是的,但在這裏它不工作http://lapasserelle-massage.fr/index.php?p=../pages/formation.php&r=11點擊右邊的綠色圖片 – user1475195