Salut, j'essaie d'ajouter une boîte épaisse à une superposition dans googlemaps. Sur ma fonction JQuery onload j'appelle la fonction suivante. La carte fonctionne bien. Mais quand la boîte épaisse ne semble pas être appelée. Ceci est la ligne qui ne fonctionneAppel de thickbox à partir d'un fichier js
<a href="test.html?keepThis=true&TB_iframe=true&height=250&width=400" title="add a caption to title attribute/or leave blank" class="thickbox">Example 1</a>
La fonction entière
function load(lat, lng, zlevel, userKey, state) {
map = new GMap2(document.getElementById("map"));
map.disableDoubleClickZoom();
map.setCenter(new GLatLng(lat, lng), zlevel);
if (state) {
dsp = true;
map.addControl(new GLargeMapControl());
GEvent.addListener(map, "click", function(overlay, latlng) {
var zoom = map.getZoom();
var display = '<h5 class="header-flag">Flag</h5><p class="maptext"><a href="#" onclick="javascript:openOverlay(' + latlng.lat() + ',' + latlng.lng() + ',' + zoom + ');">Click here</a> to enter your comment -
<a href="test.html?keepThis=true&TB_iframe=true&height=250&width=400" title="add a caption to title attribute/or leave blank" class="thickbox">Example 1</a></p>';
setTimeout(function() { map.openInfoWindowHtml(latlng, display, { maxWidth: 200 }); }, 0);
});
} else {
}
mgr = new MarkerManager(map);
loadMarkers(userKey);
mgr.refresh();
}
s'il vous plaît préciser votre exemple code source – pocheptsov
ainsi, fait un peu de bordel avec mon poste. Je l'ai mis à jour :) – frosty