javascript - Is there a way I can fadeIn custom content of a InfoWindow? -


I do not have a listener set for markers on click , I did not create a Google map (V3 API). When it is clicked, first I load infowindow with "loading" GIF with "simple" HTML.

Then I call a method that grabs the contents through ezax and 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?

is 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 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 . 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").   

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

  var oldDraw = ib.draw; Ib.draw = function () {oldadra Aply (this); JQuery (ib.div _) hide () .; JQuery (ib.div _) fadein ('slow'). }    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -