I have a listener set on click
for the markers I create no GoogleMaps (V3 API). When it is clicked, first I load the infowindow with some simple plain HTML with a "loading" gif.
Then I call a method, that grabs the content via ajax and calls infowindow.setContent(data)
with the loaded data
. But the transition between animated gif and the new loaded content is rather ugly. Is there a way I can make this a fadeIn/fadeOut?
Here's the code for the function that loads the content:
function load_infowindow_content(infowindow, user_id){
$.ajax({
url: site_root +'usuario/map_infowindow/' + user_id,
success: function(data) {
infowindow.setContent( data );
}
});
}
Looked around and didn't find anything. Thanks in advance.