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