javascript - Is there a way I can fadeIn custom content of a InfoWindow? -
I do not have a listener set for markers on Then I call a method that grabs the contents through ezax and is the code for the function that loads the content: looked around and found nothing. thank you in advanced. You can attach your data to a single container with a specified ID and then give it Fade by using jQuery formulas edit More GoogleMaps have been described in a specific way (the achievement of): One »In fact it is possible to fade Infobox, you need to override the draw function in the infobox.js file: a click , I did not create a Google map (V3 API). When it is clicked, first I load infowindow with "loading" GIF with "simple" HTML.
infowindow.setContent (call) data) with loaded
data . But transition between animated GIF and new stuff is ugly. Is there any way I can fidin / fade it out?
function load_infowindow_content (infowindow, user_id) {$ .ajax ({url: site_root + 'usuario / Map_infowindow / '+ user_id, success: function (data) {infowindow.setContent (data);}}); }
. FadeIn () method Since the object was not invisible first, you may have to hide it first, so that jQuery does not show the transition from the container to appear completely, like:
Hide ("# mapContentContainer") ($) fadein ("slow").
var oldDraw = ib.draw; Ib.draw = function () {oldadra Aply (this); JQuery (ib.div _) hide () .; JQuery (ib.div _) fadein ('slow'). }
Comments
Post a Comment