J'ai cherché sur le Web haut et bas et n'ai pas été capable de trouver un tutoriel ou un exemple d'utilisation de jQuery pour fondre une InfoBox/InfoWindow dans Google Maps pas le contenu de la boîte réelle /fenêtre. Voici mon code, je ne suis pas sûr de ce que je fais mal, mais quelque chose ne me semble pas correct.Google Maps API V3 InfoBox en utilisant jQuery fadeIn et fadeOut
google.maps.event.addListener(marker, 'mouseover', function() {
ib.setContent(html);
ib.open(map, marker);
ib.setValues({type: "point", id: 2})
var idName = marker.get("id"); //I was trying to the id's of the elements here
var boxName = ib.get("id"); //to use in my jQuery
jQuery(idName).mouseover(function() {
jQuery(boxName).fadeIn('slow', function() {
// Animation complete
});
});
});
Je pensais quelque chose dans ce sens, http://themeforest.net/item/the-navigator-premium-wp-location-guide-blog/full_screen_preview/397351. Donc, il peut ne pas être possible avec les commandes natives infobox/window, mais peut-être avec une coutume? – intheblue25